diff options
author | John McCall <rjmccall@apple.com> | 2019-10-01 23:12:57 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2019-10-01 23:12:57 +0000 |
commit | c45f8d49897f1068676b8ba8e204d789fc6ceaea (patch) | |
tree | 5f71db8acb9237544561e8439aa2231ecdacd61e /clang/utils/TableGen/ClangOptionDocEmitter.cpp | |
parent | bbde056b88c0e5f4bddcfef557326428ae997220 (diff) | |
download | bcm5719-llvm-c45f8d49897f1068676b8ba8e204d789fc6ceaea.tar.gz bcm5719-llvm-c45f8d49897f1068676b8ba8e204d789fc6ceaea.zip |
Use scope qualifiers in Clang's tblgen backends to get useful
redeclaration checking. NFC.
llvm-svn: 373406
Diffstat (limited to 'clang/utils/TableGen/ClangOptionDocEmitter.cpp')
-rw-r--r-- | clang/utils/TableGen/ClangOptionDocEmitter.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/utils/TableGen/ClangOptionDocEmitter.cpp b/clang/utils/TableGen/ClangOptionDocEmitter.cpp index 7027113c4fa..b944ad9608f 100644 --- a/clang/utils/TableGen/ClangOptionDocEmitter.cpp +++ b/clang/utils/TableGen/ClangOptionDocEmitter.cpp @@ -8,6 +8,7 @@ // //===----------------------------------------------------------------------===// +#include "TableGenBackends.h" #include "llvm/TableGen/Error.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallString.h" @@ -21,8 +22,6 @@ using namespace llvm; -namespace clang { -namespace docs { namespace { struct DocumentedOption { Record *Option; @@ -380,11 +379,8 @@ void emitDocumentation(int Depth, const Documentation &Doc, } } // namespace -} // namespace docs - -void EmitClangOptDocs(RecordKeeper &Records, raw_ostream &OS) { - using namespace docs; +void clang::EmitClangOptDocs(RecordKeeper &Records, raw_ostream &OS) { const Record *DocInfo = Records.getDef("GlobalDocumentation"); if (!DocInfo) { PrintFatalError("The GlobalDocumentation top-level definition is missing, " @@ -396,4 +392,3 @@ void EmitClangOptDocs(RecordKeeper &Records, raw_ostream &OS) { emitDocumentation(0, extractDocumentation(Records), DocInfo, OS); } -} // end namespace clang |