r188139 - Omit llvm:: before StringRef and SmallString. We have using directive in include/clang/Basic/LLVM.h.

Robert Wilhelm robert.wilhelm at gmx.net
Sat Aug 10 06:29:02 PDT 2013


Author: row
Date: Sat Aug 10 08:29:01 2013
New Revision: 188139

URL: http://llvm.org/viewvc/llvm-project?rev=188139&view=rev
Log:
Omit  llvm:: before StringRef and SmallString. We have using directive in include/clang/Basic/LLVM.h.

Modified:
    cfe/trunk/lib/Sema/SemaAttr.cpp
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/Sema/SemaAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaAttr.cpp?rev=188139&r1=188138&r2=188139&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaAttr.cpp Sat Aug 10 08:29:01 2013
@@ -264,7 +264,7 @@ void Sema::ActOnPragmaMSStruct(PragmaMSS
   MSStructPragmaOn = (Kind == PMSST_ON);
 }
 
-void Sema::ActOnPragmaMSComment(PragmaMSCommentKind Kind, llvm::StringRef Arg) {
+void Sema::ActOnPragmaMSComment(PragmaMSCommentKind Kind, StringRef Arg) {
   // FIXME: Serialize this.
   switch (Kind) {
   case PCK_Unknown:
@@ -283,8 +283,7 @@ void Sema::ActOnPragmaMSComment(PragmaMS
   llvm_unreachable("invalid pragma comment kind");
 }
 
-void Sema::ActOnPragmaDetectMismatch(llvm::StringRef Name,
-                                     llvm::StringRef Value) {
+void Sema::ActOnPragmaDetectMismatch(StringRef Name, StringRef Value) {
   // FIXME: Serialize this.
   Consumer.HandleDetectMismatch(Name, Value);
 }

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=188139&r1=188138&r2=188139&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Sat Aug 10 08:29:01 2013
@@ -1952,7 +1952,7 @@ static void diagnoseIgnoredQualifiers(
     { DeclSpec::TQ_atomic, "_Atomic", AtomicQualLoc }
   };
 
-  llvm::SmallString<32> QualStr;
+  SmallString<32> QualStr;
   unsigned NumQuals = 0;
   SourceLocation Loc;
   FixItHint FixIts[4];





More information about the cfe-commits mailing list