diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-06-22 23:07:51 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-06-22 23:07:51 +0000 |
commit | 8ca7705aa3e5a2e0f39d00aaa170827369ec9784 (patch) | |
tree | 2a33ddff0e4b77ce71382ca30a2f6ed5875a4cff /include | |
parent | 4dcc0f7da78882b0946f6f46ec6397dd566b4e72 (diff) |
Revert r240270 ("Fixed/added namespace ending comments using clang-tidy").
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
140 files changed, 205 insertions, 215 deletions
diff --git a/include/clang/ARCMigrate/ARCMTActions.h b/include/clang/ARCMigrate/ARCMTActions.h index cfcf4e9628..c830aa3d78 100644 --- a/include/clang/ARCMigrate/ARCMTActions.h +++ b/include/clang/ARCMigrate/ARCMTActions.h @@ -70,7 +70,7 @@ protected: bool BeginInvocation(CompilerInstance &CI) override; }; -} // namespace arcmt -} // namespace clang +} +} #endif diff --git a/include/clang/AST/ASTImporter.h b/include/clang/AST/ASTImporter.h index f215b1c3cf..ee48955ca6 100644 --- a/include/clang/AST/ASTImporter.h +++ b/include/clang/AST/ASTImporter.h @@ -290,6 +290,6 @@ namespace clang { bool IsStructurallyEquivalent(QualType From, QualType To, bool Complain = true); }; -} // namespace clang +} #endif // LLVM_CLANG_AST_ASTIMPORTER_H diff --git a/include/clang/AST/ASTLambda.h b/include/clang/AST/ASTLambda.h index 82294b11bc..69df2d8c01 100644 --- a/include/clang/AST/ASTLambda.h +++ b/include/clang/AST/ASTLambda.h @@ -75,6 +75,6 @@ inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { return DC->getParent(); } -} // namespace clang +} // clang #endif diff --git a/include/clang/AST/ASTVector.h b/include/clang/AST/ASTVector.h index cddb766a3b..6ec054582e 100644 --- a/include/clang/AST/ASTVector.h +++ b/include/clang/AST/ASTVector.h @@ -400,5 +400,5 @@ void ASTVector<T>::grow(const ASTContext &C, size_t MinSize) { Capacity.setPointer(Begin+NewCapacity); } -} // namespace clang +} // end: clang namespace #endif diff --git a/include/clang/AST/BaseSubobject.h b/include/clang/AST/BaseSubobject.h index 585d786ac6..da538e3566 100644 --- a/include/clang/AST/BaseSubobject.h +++ b/include/clang/AST/BaseSubobject.h @@ -82,6 +82,6 @@ template <> struct isPodLike<clang::BaseSubobject> { static const bool value = true; }; -} // namespace llvm +} #endif diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h index 4a25a06b44..b25800bfed 100644 --- a/include/clang/AST/CanonicalType.h +++ b/include/clang/AST/CanonicalType.h @@ -659,7 +659,7 @@ CanProxy<Type> CanTypeIterator<InputIterator>::operator->() const { return CanProxy<Type>(*this); } -} // namespace clang +} #endif diff --git a/include/clang/AST/DeclAccessPair.h b/include/clang/AST/DeclAccessPair.h index 3527a160aa..3c5056c6e5 100644 --- a/include/clang/AST/DeclAccessPair.h +++ b/include/clang/AST/DeclAccessPair.h @@ -59,7 +59,7 @@ public: operator NamedDecl*() const { return getDecl(); } NamedDecl *operator->() const { return getDecl(); } }; -} // namespace clang +} // Take a moment to tell SmallVector that DeclAccessPair is POD. namespace llvm { diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 316f8d16db..6b6ac3f7d5 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -54,7 +54,7 @@ class Stmt; class StoredDeclsMap; class TranslationUnitDecl; class UsingDirectiveDecl; -} // namespace clang +} namespace clang { @@ -1799,7 +1799,7 @@ struct cast_convert_decl_context<ToTy, true> { }; -} // namespace clang +} // end clang. namespace llvm { diff --git a/include/clang/AST/DeclFriend.h b/include/clang/AST/DeclFriend.h index 8a4105b2b1..12b93b408a 100644 --- a/include/clang/AST/DeclFriend.h +++ b/include/clang/AST/DeclFriend.h @@ -242,6 +242,6 @@ inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) { data().FirstFriend = FD; } -} // namespace clang +} #endif diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h index 621ba9feb4..bd3dbd8fa7 100644 --- a/include/clang/AST/DeclGroup.h +++ b/include/clang/AST/DeclGroup.h @@ -134,7 +134,7 @@ public: } }; -} // namespace clang +} // end clang namespace namespace llvm { // DeclGroupRef is "like a pointer", implement PointerLikeTypeTraits. @@ -151,5 +151,5 @@ namespace llvm { } enum { NumLowBitsAvailable = 0 }; }; -} // namespace llvm +} #endif diff --git a/include/clang/AST/DependentDiagnostic.h b/include/clang/AST/DependentDiagnostic.h index df2ca7b5d8..8e038c83c9 100644 --- a/include/clang/AST/DependentDiagnostic.h +++ b/include/clang/AST/DependentDiagnostic.h @@ -184,6 +184,6 @@ inline DeclContext::ddiag_range DeclContext::ddiags() const { return ddiag_range(ddiag_iterator(Map->FirstDiagnostic), ddiag_iterator()); } -} // namespace clang +} #endif diff --git a/include/clang/AST/EvaluatedExprVisitor.h b/include/clang/AST/EvaluatedExprVisitor.h index 1a7a130d83..5cae5d9eca 100644 --- a/include/clang/AST/EvaluatedExprVisitor.h +++ b/include/clang/AST/EvaluatedExprVisitor.h @@ -124,6 +124,6 @@ public: EvaluatedExprVisitorBase<make_const_ptr, ImplClass>(Context) { } }; -} // namespace clang +} #endif // LLVM_CLANG_AST_EVALUATEDEXPRVISITOR_H diff --git a/include/clang/AST/ExternalASTSource.h b/include/clang/AST/ExternalASTSource.h index 2cb25d1ec6..9a76080762 100644 --- a/include/clang/AST/ExternalASTSource.h +++ b/include/clang/AST/ExternalASTSource.h @@ -467,7 +467,7 @@ struct PointerLikeTypeTraits< NumLowBitsAvailable = PointerLikeTypeTraits<T>::NumLowBitsAvailable - 1 }; }; -} // namespace llvm +} namespace clang { /// \brief Represents a lazily-loaded vector of data. diff --git a/include/clang/AST/Mangle.h b/include/clang/AST/Mangle.h index ba6755dcc6..c5a7ea16a7 100644 --- a/include/clang/AST/Mangle.h +++ b/include/clang/AST/Mangle.h @@ -240,6 +240,6 @@ public: static MicrosoftMangleContext *create(ASTContext &Context, DiagnosticsEngine &Diags); }; -} // namespace clang +} #endif diff --git a/include/clang/AST/NestedNameSpecifier.h b/include/clang/AST/NestedNameSpecifier.h index 4f593e43a6..4da17b0c07 100644 --- a/include/clang/AST/NestedNameSpecifier.h +++ b/include/clang/AST/NestedNameSpecifier.h @@ -510,6 +510,6 @@ inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, return DB; } -} // namespace clang +} #endif diff --git a/include/clang/AST/OperationKinds.h b/include/clang/AST/OperationKinds.h index b01f05e4c1..e3f0126677 100644 --- a/include/clang/AST/OperationKinds.h +++ b/include/clang/AST/OperationKinds.h @@ -350,6 +350,6 @@ enum ObjCBridgeCastKind { OBC_BridgeRetained }; -} // namespace clang +} #endif diff --git a/include/clang/AST/ParentMap.h b/include/clang/AST/ParentMap.h index 721e6efdce..8945c413d2 100644 --- a/include/clang/AST/ParentMap.h +++ b/include/clang/AST/ParentMap.h @@ -63,5 +63,5 @@ public: } }; -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/AST/Redeclarable.h b/include/clang/AST/Redeclarable.h index e19af1b053..92046d582b 100644 --- a/include/clang/AST/Redeclarable.h +++ b/include/clang/AST/Redeclarable.h @@ -272,6 +272,6 @@ public: bool isFirstDecl() const { return getFirstDecl() == this; } }; -} // namespace clang +} #endif diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 5c76f3fdc3..d903b9d8cb 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -67,7 +67,7 @@ namespace llvm { template <> struct isPodLike<clang::QualType> { static const bool value = true; }; -} // namespace llvm +} namespace clang { class ASTContext; @@ -1008,7 +1008,7 @@ private: static DestructionKind isDestructedTypeImpl(QualType type); }; -} // namespace clang +} // end clang. namespace llvm { /// Implement simplify_type for QualType, so that we can dyn_cast from QualType diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index 932ee3f3bd..e29fa49032 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -1952,6 +1952,6 @@ public: }; -} // namespace clang +} #endif diff --git a/include/clang/AST/TypeOrdering.h b/include/clang/AST/TypeOrdering.h index 865e135aa7..392e544d90 100644 --- a/include/clang/AST/TypeOrdering.h +++ b/include/clang/AST/TypeOrdering.h @@ -74,6 +74,6 @@ namespace llvm { return LHS == RHS; } }; -} // namespace llvm +} #endif diff --git a/include/clang/AST/VTTBuilder.h b/include/clang/AST/VTTBuilder.h index 0ce2bc9fb2..727bf5109a 100644 --- a/include/clang/AST/VTTBuilder.h +++ b/include/clang/AST/VTTBuilder.h @@ -157,6 +157,6 @@ public: }; -} // namespace clang +} #endif diff --git a/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h b/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h index 830f1d8e2d..cc14c7bd33 100644 --- a/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h +++ b/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h @@ -44,6 +44,6 @@ private: void mapReachability(const CFGBlock *Dst); }; -} // namespace clang +} #endif diff --git a/include/clang/Analysis/Analyses/Consumed.h b/include/clang/Analysis/Analyses/Consumed.h index 346cdb3120..a710923398 100644 --- a/include/clang/Analysis/Analyses/Consumed.h +++ b/include/clang/Analysis/Analyses/Consumed.h @@ -260,7 +260,6 @@ namespace consumed { /// exactly once. void run(AnalysisDeclContext &AC); }; -} // namespace consumed -} // namespace clang +}} // end namespace clang::consumed #endif diff --git a/include/clang/Analysis/Analyses/FormatString.h b/include/clang/Analysis/Analyses/FormatString.h index f59b45a334..2e8058dabd 100644 --- a/include/clang/Analysis/Analyses/FormatString.h +++ b/include/clang/Analysis/Analyses/FormatString.h @@ -393,7 +393,7 @@ public: static bool namedTypeToLengthModifier(QualType QT, LengthModifier &LM); }; -} // namespace analyze_format_string +} // end analyze_format_string namespace //===----------------------------------------------------------------------===// /// Pieces specific to fprintf format strings. @@ -529,7 +529,7 @@ public: bool hasValidPrecision() const; bool hasValidFieldWidth() const; }; -} // namespace analyze_printf +} // end analyze_printf namespace //===----------------------------------------------------------------------===// /// Pieces specific to fscanf format strings. @@ -595,7 +595,7 @@ public: static ScanfSpecifier Parse(const char *beg, const char *end); }; -} // namespace analyze_scanf +} // end analyze_scanf namespace //===----------------------------------------------------------------------===// // Parsing and processing of format strings (both fprintf and fscanf). @@ -665,6 +665,6 @@ bool ParseScanfString(FormatStringHandler &H, const char *beg, const char *end, const LangOptions &LO, const TargetInfo &Target); -} // namespace analyze_format_string -} // namespace clang +} // end analyze_format_string namespace +} // end clang namespace #endif diff --git a/include/clang/Analysis/Analyses/PostOrderCFGView.h b/include/clang/Analysis/Analyses/PostOrderCFGView.h index d4b8c8b903..a1c6504275 100644 --- a/include/clang/Analysis/Analyses/PostOrderCFGView.h +++ b/include/clang/Analysis/Analyses/PostOrderCFGView.h @@ -109,7 +109,7 @@ public: static PostOrderCFGView *create(AnalysisDeclContext &analysisContext); }; -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h b/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h index b4addd2f0e..c4ec2f22ec 100644 --- a/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h +++ b/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h @@ -40,6 +40,6 @@ private: bool Analyzed; }; -} // namespace clang +} #endif diff --git a/include/clang/Analysis/Analyses/ReachableCode.h b/include/clang/Analysis/Analyses/ReachableCode.h index 1dd02e5b95..4c523bfc8b 100644 --- a/include/clang/Analysis/Analyses/ReachableCode.h +++ b/include/clang/Analysis/Analyses/ReachableCode.h @@ -64,7 +64,6 @@ unsigned ScanReachableFromBlock(const CFGBlock *Start, void FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP, Callback &CB); -} // namespace reachable_code -} // namespace clang +}} // end namespace clang::reachable_code #endif diff --git a/include/clang/Analysis/Analyses/ThreadSafety.h b/include/clang/Analysis/Analyses/ThreadSafety.h index c19e34ce07..22694a7a22 100644 --- a/include/clang/Analysis/Analyses/ThreadSafety.h +++ b/include/clang/Analysis/Analyses/ThreadSafety.h @@ -222,6 +222,5 @@ void threadSafetyCleanup(BeforeSet *Cache); /// of access. LockKind getLockKindFromAccessKind(AccessKind AK); -} // namespace threadSafety -} // namespace clang +}} // end namespace clang::threadSafety #endif diff --git a/include/clang/Analysis/Analyses/ThreadSafetyLogical.h b/include/clang/Analysis/Analyses/ThreadSafetyLogical.h index 481568f20f..bc78021343 100644 --- a/include/clang/Analysis/Analyses/ThreadSafetyLogical.h +++ b/include/clang/Analysis/Analyses/ThreadSafetyLogical.h @@ -100,9 +100,9 @@ bool LExpr::implies(const LExpr *RHS) const { return lexpr::implies(this, RHS); } -} // namespace lexpr -} // namespace threadSafety -} // namespace clang +} +} +} #endif diff --git a/include/clang/Analysis/Analyses/UninitializedValues.h b/include/clang/Analysis/Analyses/UninitializedValues.h index 794c108b1b..53ff20c235 100644 --- a/include/clang/Analysis/Analyses/UninitializedValues.h +++ b/include/clang/Analysis/Analyses/UninitializedValues.h @@ -122,5 +122,5 @@ void runUninitializedVariablesAnalysis(const DeclContext &dc, const CFG &cfg, UninitVariablesHandler &handler, UninitVariablesAnalysisStats &stats); -} // namespace clang +} #endif diff --git a/include/clang/Analysis/AnalysisContext.h b/include/clang/Analysis/AnalysisContext.h index 99a93a87e3..931190e43a 100644 --- a/include/clang/Analysis/AnalysisContext.h +++ b/include/clang/Analysis/AnalysisContext.h @@ -476,5 +476,5 @@ private: } }; -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/Analysis/CFG.h b/include/clang/Analysis/CFG.h index bdedb4eca1..5430c3bc6f 100644 --- a/include/clang/Analysis/CFG.h +++ b/include/clang/Analysis/CFG.h @@ -1109,5 +1109,5 @@ template <> struct GraphTraits<Inverse<const ::clang::CFG*> > return F->nodes_end(); } }; -} // namespace llvm +} // end llvm namespace #endif diff --git a/include/clang/Analysis/CFGStmtMap.h b/include/clang/Analysis/CFGStmtMap.h index 4a8ce9eb51..4dfa91df0f 100644 --- a/include/clang/Analysis/CFGStmtMap.h +++ b/include/clang/Analysis/CFGStmtMap.h @@ -48,5 +48,5 @@ public: } }; -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/Analysis/CallGraph.h b/include/clang/Analysis/CallGraph.h index b8d923b8ec..eda22a57e8 100644 --- a/include/clang/Analysis/CallGraph.h +++ b/include/clang/Analysis/CallGraph.h @@ -166,7 +166,7 @@ public: void dump() const; }; -} // namespace clang +} // end clang namespace // Graph traits for iteration, viewing. namespace llvm { @@ -248,6 +248,6 @@ template <> struct GraphTraits<const clang::CallGraph*> : } }; -} // namespace llvm +} // end llvm namespace #endif diff --git a/include/clang/Analysis/CodeInjector.h b/include/clang/Analysis/CodeInjector.h index 1c590de4c0..413a55b05b 100644 --- a/include/clang/Analysis/CodeInjector.h +++ b/include/clang/Analysis/CodeInjector.h @@ -41,6 +41,6 @@ public: virtual Stmt *getBody(const FunctionDecl *D) = 0; virtual Stmt *getBody(const ObjCMethodDecl *D) = 0; }; -} // namespace clang +} #endif diff --git a/include/clang/Analysis/DomainSpecific/CocoaConventions.h b/include/clang/Analysis/DomainSpecific/CocoaConventions.h index 6fac09d658..8b3fcff52d 100644 --- a/include/clang/Analysis/DomainSpecific/CocoaConventions.h +++ b/include/clang/Analysis/DomainSpecific/CocoaConventions.h @@ -37,7 +37,6 @@ namespace coreFoundation { bool followsCreateRule(const FunctionDecl *FD); } -} // namespace ento -} // namespace clang +}} // end: "clang:ento" #endif diff --git a/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h b/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h index 4076c72237..f9e800a4a4 100644 --- a/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h +++ b/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h @@ -41,6 +41,6 @@ public: /// return. bool isImplicitNoReturn(const ObjCMessageExpr *ME); }; -} // namespace clang +} #endif diff --git a/include/clang/Analysis/Support/BumpVector.h b/include/clang/Analysis/Support/BumpVector.h index a39bef56c3..841adf6455 100644 --- a/include/clang/Analysis/Support/BumpVector.h +++ b/include/clang/Analysis/Support/BumpVector.h @@ -240,5 +240,5 @@ void BumpVector<T>::grow(BumpVectorContext &C, size_t MinSize) { Capacity = Begin+NewCapacity; } -} // namespace clang +} // end: clang namespace #endif diff --git a/include/clang/Basic/AddressSpaces.h b/include/clang/Basic/AddressSpaces.h index a90afdd1a1..8dd75660c6 100644 --- a/include/clang/Basic/AddressSpaces.h +++ b/include/clang/Basic/AddressSpaces.h @@ -44,8 +44,8 @@ enum ID { /// to target-specific ones. typedef unsigned Map[Count]; -} // namespace LangAS +} -} // namespace clang +} #endif diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index 993e0b9f32..27428ad81c 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -189,6 +189,6 @@ private: const char *Fmt) const; }; -} // namespace Builtin +} } // end namespace clang #endif diff --git a/include/clang/Basic/DiagnosticIDs.h b/include/clang/Basic/DiagnosticIDs.h index 2cff671578..a675dfabe4 100644 --- a/include/clang/Basic/DiagnosticIDs.h +++ b/include/clang/Basic/DiagnosticIDs.h @@ -76,7 +76,7 @@ namespace clang { Remark ///< A diagnostic that indicates normal progress through ///< compilation. }; - } // namespace diag + } class DiagnosticMapping { unsigned Severity : 3; diff --git a/include/clang/Basic/LLVM.h b/include/clang/Basic/LLVM.h index 0a4c96eb9e..0e6ff9259a 100644 --- a/include/clang/Basic/LLVM.h +++ b/include/clang/Basic/LLVM.h @@ -47,7 +47,7 @@ namespace llvm { class raw_ostream; class raw_pwrite_stream; // TODO: DenseMap, ... -} // namespace llvm +} namespace clang { diff --git a/include/clang/Basic/OpenMPKinds.h b/include/clang/Basic/OpenMPKinds.h index 1808d866c4..e2f115113e 100644 --- a/include/clang/Basic/OpenMPKinds.h +++ b/include/clang/Basic/OpenMPKinds.h @@ -117,7 +117,7 @@ bool isOpenMPPrivate(OpenMPClauseKind Kind); /// \return true - the clause is a threadprivate clause, otherwise - false. bool isOpenMPThreadPrivate(OpenMPClauseKind Kind); -} // namespace clang +} #endif diff --git a/include/clang/Basic/OperatorPrecedence.h b/include/clang/Basic/OperatorPrecedence.h index 4ee6d35303..640749fdd1 100644 --- a/include/clang/Basic/OperatorPrecedence.h +++ b/include/clang/Basic/OperatorPrecedence.h @@ -41,7 +41,7 @@ namespace prec { Multiplicative = 13, // *, /, % PointerToMember = 14 // .*, ->* }; -} // namespace prec +} /// \brief Return the precedence of the specified binary operator token. prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator, diff --git a/include/clang/Basic/PlistSupport.h b/include/clang/Basic/PlistSupport.h index 9273c56621..84dd29138a 100644 --- a/include/clang/Basic/PlistSupport.h +++ b/include/clang/Basic/PlistSupport.h @@ -113,7 +113,7 @@ inline void EmitRange(raw_ostream &o, const SourceManager &SM, EmitLocation(o, SM, R.getEnd(), FM, indent + 1); Indent(o, indent) << "</array>\n"; } -} // namespace markup -} // namespace clang +} +} #endif diff --git a/include/clang/Basic/PrettyStackTrace.h b/include/clang/Basic/PrettyStackTrace.h index c01be4bb7f..6badae5c03 100644 --- a/include/clang/Basic/PrettyStackTrace.h +++ b/include/clang/Basic/PrettyStackTrace.h @@ -33,6 +33,6 @@ namespace clang { : SM(sm), Loc(L), Message(Msg) {} void print(raw_ostream &OS) const override; }; -} // namespace clang +} #endif diff --git a/include/clang/Basic/Sanitizers.h b/include/clang/Basic/Sanitizers.h index c249ad87a9..78c1ddb56f 100644 --- a/include/clang/Basic/Sanitizers.h +++ b/include/clang/Basic/Sanitizers.h @@ -44,7 +44,7 @@ enum SanitizerOrdinal : uint64_t { const SanitizerMask ID##Group = 1ULL << SO_##ID##Group; #include "clang/Basic/Sanitizers.def" -} // namespace SanitizerKind +} struct SanitizerSet { SanitizerSet(); diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 288a271efc..3aea5ea982 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -423,7 +423,7 @@ namespace SrcMgr { return E; } }; -} // namespace SrcMgr +} // end SrcMgr namespace. /// \brief External source of source location entries. class ExternalSLocEntrySource { diff --git a/include/clang/Basic/TemplateKinds.h b/include/clang/Basic/TemplateKinds.h index 7a4084f927..aed287b462 100644 --- a/include/clang/Basic/TemplateKinds.h +++ b/include/clang/Basic/TemplateKinds.h @@ -38,7 +38,7 @@ enum TemplateNameKind { TNK_Dependent_template_name }; -} // namespace clang +} #endif diff --git a/include/clang/Basic/TypeTraits.h b/include/clang/Basic/TypeTraits.h index e3cfd8518c..ef84d2b111 100644 --- a/include/clang/Basic/TypeTraits.h +++ b/include/clang/Basic/TypeTraits.h @@ -94,6 +94,6 @@ namespace clang { UETT_AlignOf, UETT_VecStep }; -} // namespace clang +} #endif diff --git a/include/clang/Basic/Version.h b/include/clang/Basic/Version.h index 744befe343..02da432a40 100644 --- a/include/clang/Basic/Version.h +++ b/include/clang/Basic/Version.h @@ -77,6 +77,6 @@ namespace clang { /// for use in the CPP __VERSION__ macro, which includes the clang version /// number, the repository version, and the vendor tag. std::string getClangFullCPPVersion(); -} // namespace clang +} #endif // LLVM_CLANG_BASIC_VERSION_H diff --git a/include/clang/Basic/Visibility.h b/include/clang/Basic/Visibility.h index ac992f08e8..6ac52ed6b5 100644 --- a/include/clang/Basic/Visibility.h +++ b/include/clang/Basic/Visibility.h @@ -136,6 +136,6 @@ public: if (withVis) mergeVisibility(other); } }; -} // namespace clang +} #endif // LLVM_CLANG_BASIC_VISIBILITY_H diff --git a/include/clang/CodeGen/BackendUtil.h b/include/clang/CodeGen/BackendUtil.h index 3a3ac1f0d5..8586e77889 100644 --- a/include/clang/CodeGen/BackendUtil.h +++ b/include/clang/CodeGen/BackendUtil.h @@ -35,6 +35,6 @@ namespace clang { const TargetOptions &TOpts, const LangOptions &LOpts, StringRef TDesc, llvm::Module *M, BackendAction Action, raw_pwrite_stream *OS); -} // namespace clang +} #endif diff --git a/include/clang/CodeGen/CodeGenAction.h b/include/clang/CodeGen/CodeGenAction.h index 08ab634e07..264780d01c 100644 --- a/include/clang/CodeGen/CodeGenAction.h +++ b/include/clang/CodeGen/CodeGenAction.h @@ -98,6 +98,6 @@ public: EmitObjAction(llvm::LLVMContext *_VMContext = nullptr); }; -} // namespace clang +} #endif diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h index 4557025377..8facc3c830 100644 --- a/include/clang/CodeGen/ModuleBuilder.h +++ b/include/clang/CodeGen/ModuleBuilder.h @@ -45,6 +45,6 @@ namespace clang { const CodeGenOptions &CGO, llvm::LLVMContext& C, CoverageSourceInfo *CoverageInfo = nullptr); -} // namespace clang +} #endif diff --git a/include/clang/Driver/Multilib.h b/include/clang/Driver/Multilib.h index 0833198325..20bb80dca2 100644 --- a/include/clang/Driver/Multilib.h +++ b/include/clang/Driver/Multilib.h @@ -168,8 +168,8 @@ private: }; raw_ostream &operator<<(raw_ostream &OS, const MultilibSet &MS); -} // namespace driver -} // namespace clang +} +} #endif diff --git a/include/clang/Driver/Options.h b/include/clang/Driver/Options.h index c26592a5a9..2716fa9ae8 100644 --- a/include/clang/Driver/Options.h +++ b/include/clang/Driver/Options.h @@ -42,10 +42,10 @@ enum ID { LastOption #undef OPTION }; -} // namespace options +} llvm::opt::OptTable *createDriverOptTable(); -} // namespace driver -} // namespace clang +} +} #endif diff --git a/include/clang/Edit/Commit.h b/include/clang/Edit/Commit.h index f512ef2a25..5cc5b9c6ff 100644 --- a/include/clang/Edit/Commit.h +++ b/include/clang/Edit/Commit.h @@ -142,7 +142,7 @@ private: } }; -} // namespace edit +} } // end namespace clang diff --git a/include/clang/Edit/EditedSource.h b/include/clang/Edit/EditedSource.h index 88905dc040..150a5b41b5 100644 --- a/include/clang/Edit/EditedSource.h +++ b/include/clang/Edit/EditedSource.h @@ -82,7 +82,7 @@ private: FileEditsTy::iterator getActionForOffset(FileOffset Offs); }; -} // namespace edit +} } // end namespace clang diff --git a/include/clang/Edit/EditsReceiver.h b/include/clang/Edit/EditsReceiver.h index 267c4b1c75..600ac28ea9 100644 --- a/include/clang/Edit/EditsReceiver.h +++ b/include/clang/Edit/EditsReceiver.h @@ -28,7 +28,7 @@ public: virtual void remove(CharSourceRange range); }; -} // namespace edit +} } // end namespace clang diff --git a/include/clang/Edit/FileOffset.h b/include/clang/Edit/FileOffset.h index c68c0c6242..0c1e72b84e 100644 --- a/include/clang/Edit/FileOffset.h +++ b/include/clang/Edit/FileOffset.h @@ -54,7 +54,7 @@ public: } }; -} // namespace edit +} } // end namespace clang diff --git a/include/clang/Edit/Rewriters.h b/include/clang/Edit/Rewriters.h index a41fc2d90c..5e3425f56f 100644 --- a/include/clang/Edit/Rewriters.h +++ b/include/clang/Edit/Rewriters.h @@ -34,7 +34,7 @@ bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit); -} // namespace edit +} } // end namespace clang diff --git a/include/clang/Frontend/ASTConsumers.h b/include/clang/Frontend/ASTConsumers.h index 4c17cb6f62..757fcae988 100644 --- a/include/clang/Frontend/ASTConsumers.h +++ b/include/clang/Frontend/ASTConsumers.h @@ -53,6 +53,6 @@ std::unique_ptr<ASTConsumer> CreateASTViewer(); // to stderr; this is intended for debugging. std::unique_ptr<ASTConsumer> CreateDeclContextPrinter(); -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/Frontend/ChainedDiagnosticConsumer.h b/include/clang/Frontend/ChainedDiagnosticConsumer.h index 9c0c18122e..eb33273c2f 100644 --- a/include/clang/Frontend/ChainedDiagnosticConsumer.h +++ b/include/clang/Frontend/ChainedDiagnosticConsumer.h @@ -67,6 +67,6 @@ public: } }; -} // namespace clang +} // end namspace clang #endif diff --git a/include/clang/Frontend/CommandLineSourceLoc.h b/include/clang/Frontend/CommandLineSourceLoc.h index 29756e7935..a78c96d23a 100644 --- a/include/clang/Frontend/CommandLineSourceLoc.h +++ b/include/clang/Frontend/CommandLineSourceLoc.h @@ -51,7 +51,7 @@ public: } }; -} // namespace clang +} namespace llvm { namespace cl { @@ -81,7 +81,7 @@ namespace llvm { return false; } - } // namespace cl -} // namespace llvm + } +} #endif diff --git a/include/clang/Frontend/DiagnosticRenderer.h b/include/clang/Frontend/DiagnosticRenderer.h index 142ecd4082..84a0f50823 100644 --- a/include/clang/Frontend/DiagnosticRenderer.h +++ b/include/clang/Frontend/DiagnosticRenderer.h @@ -172,5 +172,5 @@ public: virtual void emitNote(SourceLocation Loc, StringRef Message, const SourceManager *SM) = 0; }; -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/Frontend/FrontendOptions.h b/include/clang/Frontend/FrontendOptions.h index c59aff6b53..c3aa226ea9 100644 --- a/include/clang/Frontend/FrontendOptions.h +++ b/include/clang/Frontend/FrontendOptions.h @@ -56,7 +56,7 @@ namespace frontend { MigrateSource, ///< Run migrator. RunPreprocessorOnly ///< Just lex, no output. }; -} // namespace frontend +} enum InputKind { IK_None, diff --git a/include/clang/Frontend/LangStandard.h b/include/clang/Frontend/LangStandard.h index 1e2841c714..8021d08942 100644 --- a/include/clang/Frontend/LangStandard.h +++ b/include/clang/Frontend/LangStandard.h @@ -32,7 +32,7 @@ enum LangFeatures { ImplicitInt = (1 << 11) }; -} // namespace frontend +} /// LangStandard - Information about the properties of a particular language /// standard. diff --git a/include/clang/Frontend/LayoutOverrideSource.h b/include/clang/Frontend/LayoutOverrideSource.h index 167b4f2a60..16d032b7dd 100644 --- a/include/clang/Frontend/LayoutOverrideSource.h +++ b/include/clang/Frontend/LayoutOverrideSource.h @@ -58,6 +58,6 @@ namespace clang { /// \brief Dump the overridden layouts. void dump(); }; -} // namespace clang +} #endif diff --git a/include/clang/Frontend/MigratorOptions.h b/include/clang/Frontend/MigratorOptions.h index cb24a025de..8eb71b13f8 100644 --- a/include/clang/Frontend/MigratorOptions.h +++ b/include/clang/Frontend/MigratorOptions.h @@ -27,5 +27,5 @@ public: } }; -} // namespace clang +} #endif diff --git a/include/clang/Frontend/SerializedDiagnosticPrinter.h b/include/clang/Frontend/SerializedDiagnosticPrinter.h index 969bc6f8bc..4c57e9d404 100644 --- a/include/clang/Frontend/SerializedDiagnosticPrinter.h +++ b/include/clang/Frontend/SerializedDiagnosticPrinter.h @@ -37,7 +37,7 @@ std::unique_ptr<DiagnosticConsumer> create(StringRef OutputFile, DiagnosticOptions *Diags, bool MergeChildRecords = false); -} // namespace serialized_diags -} // namespace clang +} // end serialized_diags namespace +} // end clang namespace #endif diff --git a/include/clang/Frontend/SerializedDiagnosticReader.h b/include/clang/Frontend/SerializedDiagnosticReader.h index 320ac96272..92e99d305d 100644 --- a/include/clang/Frontend/SerializedDiagnosticReader.h +++ b/include/clang/Frontend/SerializedDiagnosticReader.h @@ -120,8 +120,8 @@ protected: }; }; -} // namespace serialized_diags -} // namespace clang +} // end serialized_diags namespace +} // end clang namespace namespace std { template <> diff --git a/include/clang/Frontend/SerializedDiagnostics.h b/include/clang/Frontend/SerializedDiagnostics.h index e614f45c8c..2032cd3988 100644 --- a/include/clang/Frontend/SerializedDiagnostics.h +++ b/include/clang/Frontend/SerializedDiagnostics.h @@ -53,7 +53,7 @@ enum Level { /// \brief The serialized diagnostics version number. enum { VersionNumber = 2 }; -} // namespace serialized_diags -} // namespace clang +} // end serialized_diags namespace +} // end clang namespace #endif diff --git a/include/clang/Frontend/TextDiagnosticBuffer.h b/include/clang/Frontend/TextDiagnosticBuffer.h index e733768a60..3bcf824455 100644 --- a/include/clang/Frontend/TextDiagnosticBuffer.h +++ b/include/clang/Frontend/TextDiagnosticBuffer.h @@ -50,6 +50,6 @@ public: void FlushDiagnostics(DiagnosticsEngine &Diags) const; }; -} // namespace clang +} // end namspace clang #endif diff --git a/include/clang/Frontend/VerifyDiagnosticConsumer.h b/include/clang/Frontend/VerifyDiagnosticConsumer.h index a49122114f..475f07f9dc 100644 --- a/include/clang/Frontend/VerifyDiagnosticConsumer.h +++ b/include/clang/Frontend/VerifyDiagnosticConsumer.h @@ -273,6 +273,6 @@ public: const Diagnostic &Info) override; }; -} // namespace clang +} // end namspace clang #endif diff --git a/include/clang/Lex/CodeCompletionHandler.h b/include/clang/Lex/CodeCompletionHandler.h index 67aedacdd1..91c3b7811f 100644 --- a/include/clang/Lex/CodeCompletionHandler.h +++ b/include/clang/Lex/CodeCompletionHandler.h @@ -66,6 +66,6 @@ public: virtual void CodeCompleteNaturalLanguage() { } }; -} // namespace clang +} #endif // LLVM_CLANG_LEX_CODECOMPLETIONHANDLER_H diff --git a/include/clang/Lex/ExternalPreprocessorSource.h b/include/clang/Lex/ExternalPreprocessorSource.h index e23a791a02..33e7a2d84b 100644 --- a/include/clang/Lex/ExternalPreprocessorSource.h +++ b/include/clang/Lex/ExternalPreprocessorSource.h @@ -38,6 +38,6 @@ public: virtual Module *getModule(unsigned ModuleID) = 0; }; -} // namespace clang +} #endif diff --git a/include/clang/Lex/HeaderSearchOptions.h b/include/clang/Lex/HeaderSearchOptions.h index 7b5766ce48..c9c32609f1 100644 --- a/include/clang/Lex/HeaderSearchOptions.h +++ b/include/clang/Lex/HeaderSearchOptions.h @@ -38,7 +38,7 @@ namespace frontend { ObjCXXSystem, ///< Like System, but only used for ObjC++. After ///< Like System, but searched after the system directories. }; -} // namespace frontend +} /// HeaderSearchOptions - Helper class for storing options related to the /// initialization of the HeaderSearch object. diff --git a/include/clang/Lex/ModuleLoader.h b/include/clang/Lex/ModuleLoader.h index cd3dda1ad3..ae79650d1f 100644 --- a/include/clang/Lex/ModuleLoader.h +++ b/include/clang/Lex/ModuleLoader.h @@ -124,6 +124,6 @@ public: bool HadFatalFailure; }; -} // namespace clang +} #endif diff --git a/include/clang/Lex/ModuleMap.h b/include/clang/Lex/ModuleMap.h index c2c81db3fb..0bbcfac3b8 100644 --- a/include/clang/Lex/ModuleMap.h +++ b/include/clang/Lex/ModuleMap.h @@ -466,5 +466,5 @@ public: module_iterator module_end() const { return Modules.end(); } }; -} // namespace clang +} #endif diff --git a/include/clang/Lex/TokenConcatenation.h b/include/clang/Lex/TokenConcatenation.h index 4f5771f6aa..a2d98b0d47 100644 --- a/include/clang/Lex/TokenConcatenation.h +++ b/include/clang/Lex/TokenConcatenation.h @@ -67,6 +67,6 @@ namespace clang { /// is literally 'L', 'u', 'U', or 'u8'. bool IsIdentifierStringPrefix(const Token &Tok) const; }; - } // namespace clang + } // end clang namespace #endif diff --git a/include/clang/Rewrite/Core/HTMLRewrite.h b/include/clang/Rewrite/Core/HTMLRewrite.h index 83795148bd..dafdf51ce6 100644 --- a/include/clang/Rewrite/Core/HTMLRewrite.h +++ b/include/clang/Rewrite/Core/HTMLRewrite.h @@ -75,7 +75,7 @@ namespace html { /// reasonably close. void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP); -} // namespace html -} // namespace clang +} // end html namespace +} // end clang namespace #endif diff --git a/include/clang/Rewrite/Frontend/ASTConsumers.h b/include/clang/Rewrite/Frontend/ASTConsumers.h index 6037791164..c9df889504 100644 --- a/include/clang/Rewrite/Frontend/ASTConsumers.h +++ b/include/clang/Rewrite/Frontend/ASTConsumers.h @@ -43,6 +43,6 @@ std::unique_ptr<ASTConsumer> CreateHTMLPrinter(raw_ostream *OS, bool SyntaxHighlight = true, bool HighlightMacros = true); -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/Rewrite/Frontend/FixItRewriter.h b/include/clang/Rewrite/Frontend/FixItRewriter.h index 448ae29f4d..3b1b31e0cd 100644 --- a/include/clang/Rewrite/Frontend/FixItRewriter.h +++ b/include/clang/Rewrite/Frontend/FixItRewriter.h @@ -127,6 +127,6 @@ public: void Diag(SourceLocation Loc, unsigned DiagID); }; -} // namespace clang +} #endif diff --git a/include/clang/Sema/AnalysisBasedWarnings.h b/include/clang/Sema/AnalysisBasedWarnings.h index 5b1fbf399a..64dd2d36be 100644 --- a/include/clang/Sema/AnalysisBasedWarnings.h +++ b/include/clang/Sema/AnalysisBasedWarnings.h @@ -98,7 +98,6 @@ public: void PrintStats() const; }; -} // namespace sema -} // namespace clang +}} // end namespace clang::sema #endif diff --git a/include/clang/Sema/DelayedDiagnostic.h b/include/clang/Sema/DelayedDiagnostic.h index 6ae4308e1b..155b3aa72d 100644 --- a/include/clang/Sema/DelayedDiagnostic.h +++ b/include/clang/Sema/DelayedDiagnostic.h @@ -291,7 +291,7 @@ public: bool pool_empty() const { return Diagnostics.empty(); } }; -} // namespace sema +} /// Add a diagnostic to the current delay pool. inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) { @@ -300,6 +300,6 @@ inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) { } -} // namespace clang +} #endif diff --git a/include/clang/Sema/Lookup.h b/include/clang/Sema/Lookup.h index 4259ab009b..5bfee8b0d0 100644 --- a/include/clang/Sema/Lookup.h +++ b/include/clang/Sema/Lookup.h @@ -750,6 +750,6 @@ public: iterator end() { return iterator(Decls.end()); } }; -} // namespace clang +} #endif diff --git a/include/clang/Sema/ObjCMethodList.h b/include/clang/Sema/ObjCMethodList.h index ef48b06579..b618e38f88 100644 --- a/include/clang/Sema/ObjCMethodList.h +++ b/include/clang/Sema/ObjCMethodList.h @@ -53,6 +53,6 @@ struct ObjCMethodList { } }; -} // namespace clang +} #endif diff --git a/include/clang/Sema/Ownership.h b/include/clang/Sema/Ownership.h index fe91423d67..8acf9e82bf 100644 --- a/include/clang/Sema/Ownership.h +++ b/include/clang/Sema/Ownership.h @@ -103,7 +103,7 @@ namespace clang { return *this; } }; -} // namespace clang +} namespace llvm { template <class T> @@ -121,7 +121,7 @@ namespace llvm { template <class T> struct isPodLike<clang::OpaquePtr<T> > { static const bool value = true; }; -} // namespace llvm +} namespace clang { // Basic @@ -282,6 +282,6 @@ namespace clang { assert(!R.isInvalid() && "operation was asserted to never fail!"); return R.get(); } -} // namespace clang +} #endif diff --git a/include/clang/Sema/ParsedTemplate.h b/include/clang/Sema/ParsedTemplate.h index 586f2d7f0b..b36425f1be 100644 --- a/include/clang/Sema/ParsedTemplate.h +++ b/include/clang/Sema/ParsedTemplate.h @@ -209,6 +209,6 @@ namespace clang { /// Retrieves the range of the given template parameter lists. SourceRange getTemplateParamsRange(TemplateParameterList const *const *Params, unsigned NumParams); -} // namespace clang +} #endif diff --git a/include/clang/Sema/PrettyDeclStackTrace.h b/include/clang/Sema/PrettyDeclStackTrace.h index 8e227a7286..ca22e640de 100644 --- a/include/clang/Sema/PrettyDeclStackTrace.h +++ b/include/clang/Sema/PrettyDeclStackTrace.h @@ -42,6 +42,6 @@ public: void print(raw_ostream &OS) const override; }; -} // namespace clang +} #endif diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index df5182b52f..07d65f459a 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -198,7 +198,7 @@ namespace sema { class LambdaScopeInfo; class PossiblyUnreachableDiag; class TemplateDeductionInfo; -} // namespace sema +} namespace threadSafety { class BeforeSet; diff --git a/include/clang/Sema/SemaConsumer.h b/include/clang/Sema/SemaConsumer.h index f232c85e6d..676646afbd 100644 --- a/include/clang/Sema/SemaConsumer.h +++ b/include/clang/Sema/SemaConsumer.h @@ -43,6 +43,6 @@ namespace clang { return Consumer->SemaConsumer; } }; -} // namespace clang +} #endif diff --git a/include/clang/Sema/SemaFixItUtils.h b/include/clang/Sema/SemaFixItUtils.h index 4d85a632da..343ccfb3d6 100644 --- a/include/clang/Sema/SemaFixItUtils.h +++ b/include/clang/Sema/SemaFixItUtils.h @@ -87,5 +87,5 @@ struct ConversionFixItGenerator { } }; -} // namespace clang +} // endof namespace clang #endif diff --git a/include/clang/Sema/SemaLambda.h b/include/clang/Sema/SemaLambda.h index 1e9a376dc1..d043e2c459 100644 --- a/include/clang/Sema/SemaLambda.h +++ b/include/clang/Sema/SemaLambda.h @@ -31,6 +31,6 @@ Optional<unsigned> getStackIndexOfNearestEnclosingCaptureCapableLambda( ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, VarDecl *VarToCapture, Sema &S); -} // namespace clang +} // clang #endif diff --git a/include/clang/Sema/Template.h b/include/clang/Sema/Template.h index 5307bf5f5b..b822b11126 100644 --- a/include/clang/Sema/Template.h +++ b/include/clang/Sema/Template.h @@ -513,6 +513,6 @@ namespace clang { VarTemplatePartialSpecializationDecl *PartialSpec); void InstantiateEnumDefinition(EnumDecl *Enum, EnumDecl *Pattern); }; -} // namespace clang +} #endif // LLVM_CLANG_SEMA_TEMPLATE_H diff --git a/include/clang/Sema/TypoCorrection.h b/include/clang/Sema/TypoCorrection.h index 814a85ab8e..958aab0fce 100644 --- a/include/clang/Sema/TypoCorrection.h +++ b/include/clang/Sema/TypoCorrection.h @@ -355,6 +355,6 @@ public: } }; -} // namespace clang +} #endif diff --git a/include/clang/Serialization/ASTBitCodes.h b/include/clang/Serialization/ASTBitCodes.h index da217f158d..83185a870a 100644 --- a/include/clang/Serialization/ASTBitCodes.h +++ b/include/clang/Serialization/ASTBitCodes.h @@ -1481,7 +1481,7 @@ namespace clang { }; /// @} - } // namespace serialization + } } // end namespace clang #endif diff --git a/include/clang/Serialization/ASTDeserializationListener.h b/include/clang/Serialization/ASTDeserializationListener.h index 3921331193..4b10c39d8f 100644 --- a/include/clang/Serialization/ASTDeserializationListener.h +++ b/include/clang/Serialization/ASTDeserializationListener.h @@ -53,6 +53,6 @@ public: /// \brief A module definition was read from the AST file. virtual void ModuleRead(serialization::SubmoduleID ID, Module *Mod) {} }; -} // namespace clang +} #endif diff --git a/include/clang/Serialization/ContinuousRangeMap.h b/include/clang/Serialization/ContinuousRangeMap.h index 05777e31ec..244b01b22a 100644 --- a/include/clang/Serialization/ContinuousRangeMap.h +++ b/include/clang/Serialization/ContinuousRangeMap.h @@ -134,6 +134,6 @@ public: friend class Builder; }; -} // namespace clang +} #endif diff --git a/include/clang/Serialization/GlobalModuleIndex.h b/include/clang/Serialization/GlobalModuleIndex.h index e11605a1d3..7e205106c4 100644 --- a/include/clang/Serialization/GlobalModuleIndex.h +++ b/include/clang/Serialization/GlobalModuleIndex.h @@ -202,6 +202,6 @@ public: StringRef Path); }; -} // namespace clang +} #endif diff --git a/include/clang/Serialization/ModuleManager.h b/include/clang/Serialization/ModuleManager.h index a5418ba4e0..ea4b57fa3a 100644 --- a/include/clang/Serialization/ModuleManager.h +++ b/include/clang/Serialization/ModuleManager.h @@ -330,7 +330,6 @@ public: void viewGraph(); }; -} // namespace serialization - } // namespace clang +} } // end namespace clang::serialization #endif diff --git a/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h b/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h index 6602219d1e..5850656916 100644 --- a/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h +++ b/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h @@ -228,9 +228,7 @@ public: static CallEffects getEffect(const FunctionDecl *FD); }; -} // namespace objc_retain -} // namespace ento -} // namespace clang +}}} #endif diff --git a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index 3e8a8c6f94..f02e48a441 100644 --- a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -538,6 +538,6 @@ public: typedef IntrusiveRefCntPtr<AnalyzerOptions> AnalyzerOptionsRef; -} // namespace clang +} #endif diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h index 28ae89d7d0..308ac8363b 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h @@ -311,8 +311,8 @@ public: virtual void Profile(llvm::FoldingSetNodeID& hash) const; }; -} // namespace ento -} // namespace clang +} // end ento namespace +} // end clang namespace namespace llvm { template<> struct ilist_traits<clang::ento::BugReport> @@ -331,7 +331,7 @@ namespace llvm { private: mutable ilist_half_node<clang::ento::BugReport> Sentinel; }; -} // namespace llvm +} namespace clang { namespace ento { @@ -554,8 +554,8 @@ public: virtual BugReport::NodeResolver& getNodeResolver() = 0; }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h index 129c329feb..83b05ecc52 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h @@ -357,9 +357,9 @@ const Stmt *GetRetValExpr(const ExplodedNode *N); bool isDeclRefExprToReference(const Expr *E); -} // namespace bugreporter +} // end namespace clang } // end namespace ento -} // namespace clang +} // end namespace bugreporter #endif diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h index a543052782..16226e94df 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h @@ -75,7 +75,7 @@ public: StringRef getDescription() const { return desc; } }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index d98dd78e40..941d524079 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -842,8 +842,8 @@ public: void FullProfile(llvm::FoldingSetNodeID &ID) const; }; -} // namespace ento +} // end GR namespace -} // namespace clang +} //end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/Checker.h b/include/clang/StaticAnalyzer/Core/Checker.h index 4bd765379c..099d76311f 100644 --- a/include/clang/StaticAnalyzer/Core/Checker.h +++ b/include/clang/StaticAnalyzer/Core/Checker.h @@ -411,7 +411,7 @@ public: } }; -} // namespace check +} // end check namespace namespace eval { @@ -446,7 +446,7 @@ public: } }; -} // namespace eval +} // end eval namespace class CheckerBase : public ProgramPointTag { CheckName Name; @@ -528,8 +528,8 @@ struct DefaultBool { DefaultBool &operator=(bool b) { val = b; return *this; } }; -} // namespace ento +} // end ento namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/CheckerManager.h b/include/clang/StaticAnalyzer/Core/CheckerManager.h index ed7c384f65..8a1a82b342 100644 --- a/include/clang/StaticAnalyzer/Core/CheckerManager.h +++ b/include/clang/StaticAnalyzer/Core/CheckerManager.h @@ -602,8 +602,8 @@ private: EventsTy Events; }; -} // namespace ento +} // end ento namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h b/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h index b2a2fbd2c3..ce512fd301 100644 --- a/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h +++ b/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h @@ -34,7 +34,7 @@ void CREATEFN(AnalyzerOptions &AnalyzerOpts,\ const Preprocessor &PP); #include "clang/StaticAnalyzer/Core/Analyses.def" -} // namespace ento -} // namespace clang +} // end 'ento' namespace +} // end 'clang' namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h b/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h index 164d7d586e..cc8a9b8ef0 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h @@ -103,7 +103,7 @@ public: } }; -} // namespace ento -} // namespace clang +} // end ento namespace +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h index f307c10b59..3e0913ec4e 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h @@ -128,8 +128,8 @@ public: } }; -} // namespace ento +} // enAnaCtxMgrspace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h b/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h index 8930258614..5b007f1531 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h @@ -193,8 +193,8 @@ public: const SVal* getPersistentSVal(SVal X); }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h b/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h index 3a0f4ef886..1d779e6cb6 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h @@ -53,8 +53,8 @@ public: friend class Factory; }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index d4fbde0aac..63b8631665 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -1027,6 +1027,6 @@ namespace llvm { return Val.get(); } }; -} // namespace llvm +} #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h index 136e6d75bf..68274f52a6 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h @@ -304,8 +304,8 @@ private: } }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h index 92255de2c1..6a42df20d1 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h @@ -36,8 +36,8 @@ template <class T> bool containsStmt(const Stmt *S) { return false; } -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h index a92c3bebef..f8760964b7 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h @@ -152,8 +152,8 @@ std::unique_ptr<ConstraintManager> CreateRangeConstraintManager(ProgramStateManager &statemgr, SubEngine *subengine); -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h index 7084fa0592..d5822e2244 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h @@ -541,7 +541,7 @@ public: } }; -} // namespace ento -} // namespace clang +} // end ento namespace +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h b/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h index accbe7d3ea..e13c6410c7 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h @@ -46,7 +46,7 @@ public: } }; -} // namespace ento -} // namespace clang +} // end ento +} // end clang #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h b/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h index 946ec6f5f3..cc3779d743 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h @@ -120,8 +120,8 @@ public: ProgramStateRef state); }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index 22b7d732c0..cfb1b921e9 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h @@ -433,9 +433,9 @@ public: inline const_iterator end() const { return Impl.end(); } }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace // GraphTraits @@ -492,6 +492,6 @@ namespace llvm { } }; -} // namespace llvm +} // end llvm namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h index e980ab70ae..d8f1c34fef 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h @@ -613,8 +613,8 @@ struct ProgramStateTrait<ReplayWithoutInlining> : static void *GDMIndex() { static int index = 0; return &index; } }; -} // namespace ento +} // end ento namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h b/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h index 9e62119138..faa3500045 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h @@ -135,7 +135,6 @@ public: }; -} // namespace ento -} // namespace clang +}} // end clang ento namespaces #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h index c57756e441..4f0712968b 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h @@ -1345,9 +1345,9 @@ public: bool hasTrait(const MemRegion *MR, InvalidationKinds IK); }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace //===----------------------------------------------------------------------===// // Pretty-printing regions. diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h index 49602374a3..ac4e452c02 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h @@ -813,8 +813,8 @@ public: bool scan(const SymExpr *sym); }; -} // namespace ento +} // end ento namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h index 56b5d6d40c..6b4da7db24 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h @@ -238,8 +238,8 @@ namespace ento { } }; -} // namespace ento +} // end ento namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h b/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h index d45cee05b5..a68d3410a8 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h @@ -326,8 +326,8 @@ SValBuilder* createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc, ASTContext &context, ProgramStateManager &stateMgr); -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h b/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h index baeb09a3e1..642e11af0e 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h @@ -457,7 +457,7 @@ private: } }; -} // namespace nonloc +} // end namespace ento::nonloc //==------------------------------------------------------------------------==// // Subclasses of Loc. @@ -551,11 +551,11 @@ private: } }; -} // namespace loc +} // end ento::loc namespace -} // namespace ento +} // end ento namespace -} // namespace clang +} // end clang namespace namespace llvm { static inline raw_ostream &operator<<(raw_ostream &os, @@ -569,6 +569,6 @@ template <> struct isPodLike<clang::ento::SVal> { static const bool value = true; }; -} // namespace llvm +} // end llvm namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h b/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h index c41ac8ed62..a03b6306a0 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h @@ -281,8 +281,8 @@ CreateRegionStoreManager(ProgramStateManager &StMgr); std::unique_ptr<StoreManager> CreateFieldsOnlyRegionStoreManager(ProgramStateManager &StMgr); -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h b/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h index ed8af4a52e..958c8c377e 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h @@ -47,6 +47,5 @@ public: const StoreManager &getStoreManager() const { return mgr; } }; -} // namespace ento -} // namespace clang +}} #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h b/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h index d7aee40a05..741ba0e2f2 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h @@ -155,8 +155,8 @@ public: virtual void processEndWorklist(bool hasWorkRemaining) = 0; }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h index a933e658c5..1ca96a2231 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h @@ -660,9 +660,9 @@ public: virtual ~SymbolVisitor(); }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace namespace llvm { static inline raw_ostream &operator<<(raw_ostream &os, diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h index cef8918ff5..d39b5017d3 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h @@ -40,7 +40,7 @@ class TaintManager { TaintManager() {} }; -} // namespace ento -} // namespace clang +} +} #endif diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h b/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h index 609bbc873f..4f1a60e675 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h @@ -93,8 +93,8 @@ public: static WorkList *makeBFSBlockDFSContents(); }; -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h b/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h index e37c747528..37ea05fb99 100644 --- a/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h +++ b/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h @@ -42,8 +42,8 @@ public: std::unique_ptr<AnalysisASTConsumer> CreateAnalysisConsumer(CompilerInstance &CI); -} // namespace ento +} // end GR namespace -} // namespace clang +} // end clang namespace #endif diff --git a/include/clang/StaticAnalyzer/Frontend/FrontendActions.h b/include/clang/StaticAnalyzer/Frontend/FrontendActions.h index c55c25e795..36afb4bc5d 100644 --- a/include/clang/StaticAnalyzer/Frontend/FrontendActions.h +++ b/include/clang/StaticAnalyzer/Frontend/FrontendActions.h @@ -53,7 +53,7 @@ private: void printCheckerHelp(raw_ostream &OS, ArrayRef<std::string> plugins); -} // namespace ento +} // end GR namespace } // end namespace clang diff --git a/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h b/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h index 5723c2eb45..24f8042587 100644 --- a/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h +++ b/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h @@ -38,7 +38,7 @@ public: private: llvm::StringMap<Stmt *> &Bodies; }; -} // namespace ento -} // namespace clang +} +} #endif |