]> granicus.if.org Git - clang/commitdiff
clean up namespace.
authorChris Lattner <sabre@nondot.org>
Mon, 2 Nov 2009 21:48:09 +0000 (21:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 2 Nov 2009 21:48:09 +0000 (21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85826 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp

index ecae355f6544fd8ca71bde572fee168fa76e17f1..2719fbb456c0497308a1ea4dd893f3365bdaedea 100644 (file)
@@ -17,8 +17,7 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/System/Path.h"
-
-namespace clang {
+using namespace clang;
 
 // Append a #define line to Buf for Macro.  Macro should be of the form XXX,
 // in which case we emit "#define XXX 1" or "XXX=Y z W" in which case we emit
@@ -443,8 +442,8 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
 /// InitializePreprocessor - Initialize the preprocessor getting it and the
 /// environment ready to process a single file. This returns true on error.
 ///
-bool InitializePreprocessor(Preprocessor &PP,
-                            const PreprocessorInitOptions& InitOpts) {
+bool clang::InitializePreprocessor(Preprocessor &PP,
+                                   const PreprocessorInitOptions &InitOpts) {
   std::vector<char> PredefineBuffer;
 
   const char *LineDirective = "# 1 \"<built-in>\" 3\n";
@@ -492,5 +491,3 @@ bool InitializePreprocessor(Preprocessor &PP,
   // Once we've read this, we're done.
   return false;
 }
-
-} // namespace clang