From 2f4fc005937e75d931eb6ef87a3fe16364d45113 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 26 Jun 2014 21:59:27 -0700 Subject: Stick everything in a namespace --- Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index e2e3bca..a30f5d7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -461,6 +461,8 @@ obj/%.cpp.formatted: src/%.cpp tools/indenter fgrep -q Copyright $< fgrep -q $(notdir $<) $< fgrep -q ../poison.hpp $< + grep -q '^namespace tmwa$$' $< + grep -q '^} // namespace tmwa$$' $< touch $@ obj/%.hpp.formatted: src/%.hpp tools/indenter $(MKDIR_FIRST) @@ -469,11 +471,15 @@ obj/%.hpp.formatted: src/%.hpp tools/indenter fgrep -q $(notdir $<) $< if [[ $< == *fwd* ]]; then fgrep -q ../sanity.hpp $<; else fgrep -q '"fwd.hpp"' $<; fi if [[ $< == *fwd* ]]; then ! fgrep -q '"fwd.hpp"' $<; else ! fgrep -q ../sanity.hpp $<; fi + grep -q '^namespace tmwa$$' $< + grep -q '^} // namespace tmwa$$' $< touch $@ obj/%.tcc.formatted: src/%.tcc tools/indenter $(MKDIR_FIRST) apply-filter 'indenter -cpp' $< fgrep -q Copyright $< fgrep -q $(notdir $<) $< + grep -q '^namespace tmwa$$' $< + grep -q '^} // namespace tmwa$$' $< touch $@ .PHONY: format format-cpp format-hpp -- cgit v1.2.3-60-g2f50