diff options
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/DiagnosticIDs.cpp | 10 | ||||
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index baee5aa8e02..643503b00b9 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -68,7 +68,7 @@ struct StaticDiagInfoRec { } }; -} // namespace +} // namespace anonymous static const StaticDiagInfoRec StaticDiagInfo[] = { #define DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, \ @@ -193,7 +193,7 @@ namespace { return StringRef(NameStr, NameLen); } }; -} // namespace +} // Unfortunately, the split between DiagnosticIDs and Diagnostic is not // particularly clean, but for now we just implement this method here so we can @@ -292,8 +292,8 @@ namespace clang { } }; - } // namespace diag -} // namespace clang + } // end diag namespace +} // end clang namespace //===----------------------------------------------------------------------===// @@ -497,7 +497,7 @@ namespace { DiagGroupNames[NameOffset]); } }; -} // namespace +} // Second the table of options, sorted by name for fast binary lookup. static const WarningOption OptionTable[] = { diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index c7bb2c667d3..b2950081000 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -122,7 +122,7 @@ namespace { KS_Enabled, // Enabled KS_Future // Is a keyword in future standard }; -} // namespace +} /// \brief Translates flags as specified in TokenKinds.def into keyword status /// in the given language standard. diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index 7196f2d1f96..8a882e13f7a 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -213,7 +213,7 @@ public: return EC; } }; -} // namespace +} directory_iterator RealFileSystem::dir_begin(const Twine &Dir, std::error_code &EC) { @@ -1024,7 +1024,7 @@ public: JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} void write(ArrayRef<YAMLVFSEntry> Entries, Optional<bool> IsCaseSensitive); }; -} // namespace +} bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { using namespace llvm::sys; |