diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-15 23:05:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-15 23:05:46 +0000 |
commit | 23b7eb677d87a79179d5e71aba547c4c7794b215 (patch) | |
tree | b53780d6f65b69236a0d25f0508d410c938303d4 /clang/Lex/MacroExpander.cpp | |
parent | 2b228c95aa9bf69f27af12294149f57459ef41b1 (diff) | |
download | bcm5719-llvm-23b7eb677d87a79179d5e71aba547c4c7794b215.tar.gz bcm5719-llvm-23b7eb677d87a79179d5e71aba547c4c7794b215.zip |
Finally bite the bullet and make the major change: split the clang namespace
out of the llvm namespace. This makes the clang namespace be a sibling of
llvm instead of being a child.
The good thing about this is that it makes many things unambiguous. The
bad things is that many things in the llvm namespace (notably data structures
like smallvector) now require an llvm:: qualifier. IMO, libsystem and libsupport
should be split out of llvm into their own namespace in the future, which will fix
this issue.
llvm-svn: 39659
Diffstat (limited to 'clang/Lex/MacroExpander.cpp')
-rw-r--r-- | clang/Lex/MacroExpander.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/Lex/MacroExpander.cpp b/clang/Lex/MacroExpander.cpp index daf0c555ade..a45efbd86e9 100644 --- a/clang/Lex/MacroExpander.cpp +++ b/clang/Lex/MacroExpander.cpp @@ -17,7 +17,6 @@ #include "clang/Basic/SourceManager.h" #include "clang/Basic/Diagnostic.h" #include "llvm/ADT/SmallVector.h" -using namespace llvm; using namespace clang; //===----------------------------------------------------------------------===// @@ -286,7 +285,7 @@ MacroExpander::~MacroExpander() { /// Expand the arguments of a function-like macro so that we can quickly /// return preexpanded tokens from MacroTokens. void MacroExpander::ExpandFunctionArguments() { - SmallVector<LexerToken, 128> ResultToks; + llvm::SmallVector<LexerToken, 128> ResultToks; // Loop through the MacroTokens tokens, expanding them into ResultToks. Keep // track of whether we change anything. If not, no need to keep them. If so, @@ -509,7 +508,7 @@ void MacroExpander::Lex(LexerToken &Tok) { /// operator. Read the ## and RHS, and paste the LHS/RHS together. If there /// are is another ## after it, chomp it iteratively. Return the result as Tok. void MacroExpander::PasteTokens(LexerToken &Tok) { - SmallVector<char, 128> Buffer; + llvm::SmallVector<char, 128> Buffer; do { // Consume the ## operator. SourceLocation PasteOpLoc = MacroTokens[CurToken].getLocation(); |