diff options
Diffstat (limited to 'clang/include/clang')
140 files changed, 205 insertions, 215 deletions
diff --git a/clang/include/clang/ARCMigrate/ARCMTActions.h b/clang/include/clang/ARCMigrate/ARCMTActions.h index cfcf4e96288..c830aa3d787 100644 --- a/clang/include/clang/ARCMigrate/ARCMTActions.h +++ b/clang/include/clang/ARCMigrate/ARCMTActions.h @@ -70,7 +70,7 @@ protected: bool BeginInvocation(CompilerInstance &CI) override; }; -} // namespace arcmt -} // namespace clang +} +} #endif diff --git a/clang/include/clang/AST/ASTImporter.h b/clang/include/clang/AST/ASTImporter.h index f215b1c3cfd..ee48955ca63 100644 --- a/clang/include/clang/AST/ASTImporter.h +++ b/clang/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/clang/include/clang/AST/ASTLambda.h b/clang/include/clang/AST/ASTLambda.h index 82294b11bc5..69df2d8c011 100644 --- a/clang/include/clang/AST/ASTLambda.h +++ b/clang/include/clang/AST/ASTLambda.h @@ -75,6 +75,6 @@ inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { return DC->getParent(); } -} // namespace clang +} // clang #endif diff --git a/clang/include/clang/AST/ASTVector.h b/clang/include/clang/AST/ASTVector.h index cddb766a3b4..6ec054582e2 100644 --- a/clang/include/clang/AST/ASTVector.h +++ b/clang/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/clang/include/clang/AST/BaseSubobject.h b/clang/include/clang/AST/BaseSubobject.h index 585d786ac6a..da538e3566a 100644 --- a/clang/include/clang/AST/BaseSubobject.h +++ b/clang/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/clang/include/clang/AST/CanonicalType.h b/clang/include/clang/AST/CanonicalType.h index 4a25a06b447..b25800bfedb 100644 --- a/clang/include/clang/AST/CanonicalType.h +++ b/clang/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/clang/include/clang/AST/DeclAccessPair.h b/clang/include/clang/AST/DeclAccessPair.h index 3527a160aa8..3c5056c6e55 100644 --- a/clang/include/clang/AST/DeclAccessPair.h +++ b/clang/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/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h index 316f8d16db5..6b6ac3f7d5a 100644 --- a/clang/include/clang/AST/DeclBase.h +++ b/clang/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/clang/include/clang/AST/DeclFriend.h b/clang/include/clang/AST/DeclFriend.h index 8a4105b2b1f..12b93b408a7 100644 --- a/clang/include/clang/AST/DeclFriend.h +++ b/clang/include/clang/AST/DeclFriend.h @@ -242,6 +242,6 @@ inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) { data().FirstFriend = FD; } -} // namespace clang +} #endif diff --git a/clang/include/clang/AST/DeclGroup.h b/clang/include/clang/AST/DeclGroup.h index 621ba9feb43..bd3dbd8fa78 100644 --- a/clang/include/clang/AST/DeclGroup.h +++ b/clang/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/clang/include/clang/AST/DependentDiagnostic.h b/clang/include/clang/AST/DependentDiagnostic.h index df2ca7b5d88..8e038c83c98 100644 --- a/clang/include/clang/AST/DependentDiagnostic.h +++ b/clang/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/clang/include/clang/AST/EvaluatedExprVisitor.h b/clang/include/clang/AST/EvaluatedExprVisitor.h index 1a7a130d831..5cae5d9eca3 100644 --- a/clang/include/clang/AST/EvaluatedExprVisitor.h +++ b/clang/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/clang/include/clang/AST/ExternalASTSource.h b/clang/include/clang/AST/ExternalASTSource.h index 2cb25d1ec61..9a760807621 100644 --- a/clang/include/clang/AST/ExternalASTSource.h +++ b/clang/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/clang/include/clang/AST/Mangle.h b/clang/include/clang/AST/Mangle.h index ba6755dcc68..c5a7ea16a7e 100644 --- a/clang/include/clang/AST/Mangle.h +++ b/clang/include/clang/AST/Mangle.h @@ -240,6 +240,6 @@ public: static MicrosoftMangleContext *create(ASTContext &Context, DiagnosticsEngine &Diags); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/AST/NestedNameSpecifier.h b/clang/include/clang/AST/NestedNameSpecifier.h index 4f593e43a6f..4da17b0c077 100644 --- a/clang/include/clang/AST/NestedNameSpecifier.h +++ b/clang/include/clang/AST/NestedNameSpecifier.h @@ -510,6 +510,6 @@ inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, return DB; } -} // namespace clang +} #endif diff --git a/clang/include/clang/AST/OperationKinds.h b/clang/include/clang/AST/OperationKinds.h index b01f05e4c12..e3f01266772 100644 --- a/clang/include/clang/AST/OperationKinds.h +++ b/clang/include/clang/AST/OperationKinds.h @@ -350,6 +350,6 @@ enum ObjCBridgeCastKind { OBC_BridgeRetained }; -} // namespace clang +} #endif diff --git a/clang/include/clang/AST/ParentMap.h b/clang/include/clang/AST/ParentMap.h index 721e6efdce3..8945c413d26 100644 --- a/clang/include/clang/AST/ParentMap.h +++ b/clang/include/clang/AST/ParentMap.h @@ -63,5 +63,5 @@ public: } }; -} // namespace clang +} // end clang namespace #endif diff --git a/clang/include/clang/AST/Redeclarable.h b/clang/include/clang/AST/Redeclarable.h index e19af1b053f..92046d582bf 100644 --- a/clang/include/clang/AST/Redeclarable.h +++ b/clang/include/clang/AST/Redeclarable.h @@ -272,6 +272,6 @@ public: bool isFirstDecl() const { return getFirstDecl() == this; } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 5c76f3fdc36..d903b9d8cbc 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/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/clang/include/clang/AST/TypeLoc.h b/clang/include/clang/AST/TypeLoc.h index 932ee3f3bde..e29fa490328 100644 --- a/clang/include/clang/AST/TypeLoc.h +++ b/clang/include/clang/AST/TypeLoc.h @@ -1952,6 +1952,6 @@ public: }; -} // namespace clang +} #endif diff --git a/clang/include/clang/AST/TypeOrdering.h b/clang/include/clang/AST/TypeOrdering.h index 865e135aa73..392e544d90c 100644 --- a/clang/include/clang/AST/TypeOrdering.h +++ b/clang/include/clang/AST/TypeOrdering.h @@ -74,6 +74,6 @@ namespace llvm { return LHS == RHS; } }; -} // namespace llvm +} #endif diff --git a/clang/include/clang/AST/VTTBuilder.h b/clang/include/clang/AST/VTTBuilder.h index 0ce2bc9fb23..727bf5109ad 100644 --- a/clang/include/clang/AST/VTTBuilder.h +++ b/clang/include/clang/AST/VTTBuilder.h @@ -157,6 +157,6 @@ public: }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h b/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h index 830f1d8e2da..cc14c7bd33d 100644 --- a/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h +++ b/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h @@ -44,6 +44,6 @@ private: void mapReachability(const CFGBlock *Dst); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Analysis/Analyses/Consumed.h b/clang/include/clang/Analysis/Analyses/Consumed.h index 346cdb3120f..a7109233987 100644 --- a/clang/include/clang/Analysis/Analyses/Consumed.h +++ b/clang/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/clang/include/clang/Analysis/Analyses/FormatString.h b/clang/include/clang/Analysis/Analyses/FormatString.h index f59b45a3340..2e8058dabda 100644 --- a/clang/include/clang/Analysis/Analyses/FormatString.h +++ b/clang/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/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h b/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h index d4b8c8b9037..a1c65042758 100644 --- a/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h +++ b/clang/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/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h b/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h index b4addd2f0ea..c4ec2f22eca 100644 --- a/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h +++ b/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h @@ -40,6 +40,6 @@ private: bool Analyzed; }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Analysis/Analyses/ReachableCode.h b/clang/include/clang/Analysis/Analyses/ReachableCode.h index 1dd02e5b951..4c523bfc8b5 100644 --- a/clang/include/clang/Analysis/Analyses/ReachableCode.h +++ b/clang/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/clang/include/clang/Analysis/Analyses/ThreadSafety.h b/clang/include/clang/Analysis/Analyses/ThreadSafety.h index c19e34ce077..22694a7a225 100644 --- a/clang/include/clang/Analysis/Analyses/ThreadSafety.h +++ b/clang/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/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h b/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h index 481568f20fd..bc78021343a 100644 --- a/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h +++ b/clang/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/clang/include/clang/Analysis/Analyses/UninitializedValues.h b/clang/include/clang/Analysis/Analyses/UninitializedValues.h index 794c108b1bf..53ff20c2356 100644 --- a/clang/include/clang/Analysis/Analyses/UninitializedValues.h +++ b/clang/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/clang/include/clang/Analysis/AnalysisContext.h b/clang/include/clang/Analysis/AnalysisContext.h index 99a93a87e35..931190e43a6 100644 --- a/clang/include/clang/Analysis/AnalysisContext.h +++ b/clang/include/clang/Analysis/AnalysisContext.h @@ -476,5 +476,5 @@ private: } }; -} // namespace clang +} // end clang namespace #endif diff --git a/clang/include/clang/Analysis/CFG.h b/clang/include/clang/Analysis/CFG.h index bdedb4eca16..5430c3bc6f2 100644 --- a/clang/include/clang/Analysis/CFG.h +++ b/clang/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/clang/include/clang/Analysis/CFGStmtMap.h b/clang/include/clang/Analysis/CFGStmtMap.h index 4a8ce9eb518..4dfa91df0f4 100644 --- a/clang/include/clang/Analysis/CFGStmtMap.h +++ b/clang/include/clang/Analysis/CFGStmtMap.h @@ -48,5 +48,5 @@ public: } }; -} // namespace clang +} // end clang namespace #endif diff --git a/clang/include/clang/Analysis/CallGraph.h b/clang/include/clang/Analysis/CallGraph.h index b8d923b8ec4..eda22a57e8a 100644 --- a/clang/include/clang/Analysis/CallGraph.h +++ b/clang/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/clang/include/clang/Analysis/CodeInjector.h b/clang/include/clang/Analysis/CodeInjector.h index 1c590de4c0d..413a55b05b0 100644 --- a/clang/include/clang/Analysis/CodeInjector.h +++ b/clang/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/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h b/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h index 6fac09d6581..8b3fcff52d0 100644 --- a/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h +++ b/clang/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/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h b/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h index 4076c722374..f9e800a4a41 100644 --- a/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h +++ b/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h @@ -41,6 +41,6 @@ public: /// return. bool isImplicitNoReturn(const ObjCMessageExpr *ME); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Analysis/Support/BumpVector.h b/clang/include/clang/Analysis/Support/BumpVector.h index a39bef56c3b..841adf64557 100644 --- a/clang/include/clang/Analysis/Support/BumpVector.h +++ b/clang/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/clang/include/clang/Basic/AddressSpaces.h b/clang/include/clang/Basic/AddressSpaces.h index a90afdd1a1a..8dd75660c67 100644 --- a/clang/include/clang/Basic/AddressSpaces.h +++ b/clang/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/clang/include/clang/Basic/Builtins.h b/clang/include/clang/Basic/Builtins.h index 993e0b9f328..27428ad81cb 100644 --- a/clang/include/clang/Basic/Builtins.h +++ b/clang/include/clang/Basic/Builtins.h @@ -189,6 +189,6 @@ private: const char *Fmt) const; }; -} // namespace Builtin +} } // end namespace clang #endif diff --git a/clang/include/clang/Basic/DiagnosticIDs.h b/clang/include/clang/Basic/DiagnosticIDs.h index 2cff6715780..a675dfabe46 100644 --- a/clang/include/clang/Basic/DiagnosticIDs.h +++ b/clang/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/clang/include/clang/Basic/LLVM.h b/clang/include/clang/Basic/LLVM.h index 0a4c96eb9e3..0e6ff9259a1 100644 --- a/clang/include/clang/Basic/LLVM.h +++ b/clang/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/clang/include/clang/Basic/OpenMPKinds.h b/clang/include/clang/Basic/OpenMPKinds.h index 1808d866c43..e2f115113e2 100644 --- a/clang/include/clang/Basic/OpenMPKinds.h +++ b/clang/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/clang/include/clang/Basic/OperatorPrecedence.h b/clang/include/clang/Basic/OperatorPrecedence.h index 4ee6d353033..640749fdd10 100644 --- a/clang/include/clang/Basic/OperatorPrecedence.h +++ b/clang/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/clang/include/clang/Basic/PlistSupport.h b/clang/include/clang/Basic/PlistSupport.h index 9273c566212..84dd29138a8 100644 --- a/clang/include/clang/Basic/PlistSupport.h +++ b/clang/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/clang/include/clang/Basic/PrettyStackTrace.h b/clang/include/clang/Basic/PrettyStackTrace.h index c01be4bb7f3..6badae5c034 100644 --- a/clang/include/clang/Basic/PrettyStackTrace.h +++ b/clang/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/clang/include/clang/Basic/Sanitizers.h b/clang/include/clang/Basic/Sanitizers.h index c249ad87a9b..78c1ddb56f9 100644 --- a/clang/include/clang/Basic/Sanitizers.h +++ b/clang/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/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h index 288a271efcd..3aea5ea9825 100644 --- a/clang/include/clang/Basic/SourceManager.h +++ b/clang/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/clang/include/clang/Basic/TemplateKinds.h b/clang/include/clang/Basic/TemplateKinds.h index 7a4084f9279..aed287b4622 100644 --- a/clang/include/clang/Basic/TemplateKinds.h +++ b/clang/include/clang/Basic/TemplateKinds.h @@ -38,7 +38,7 @@ enum TemplateNameKind { TNK_Dependent_template_name }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Basic/TypeTraits.h b/clang/include/clang/Basic/TypeTraits.h index e3cfd8518ca..ef84d2b1116 100644 --- a/clang/include/clang/Basic/TypeTraits.h +++ b/clang/include/clang/Basic/TypeTraits.h @@ -94,6 +94,6 @@ namespace clang { UETT_AlignOf, UETT_VecStep }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Basic/Version.h b/clang/include/clang/Basic/Version.h index 744befe3434..02da432a40d 100644 --- a/clang/include/clang/Basic/Version.h +++ b/clang/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/clang/include/clang/Basic/Visibility.h b/clang/include/clang/Basic/Visibility.h index ac992f08e86..6ac52ed6b5e 100644 --- a/clang/include/clang/Basic/Visibility.h +++ b/clang/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/clang/include/clang/CodeGen/BackendUtil.h b/clang/include/clang/CodeGen/BackendUtil.h index 3a3ac1f0d54..8586e778894 100644 --- a/clang/include/clang/CodeGen/BackendUtil.h +++ b/clang/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/clang/include/clang/CodeGen/CodeGenAction.h b/clang/include/clang/CodeGen/CodeGenAction.h index 08ab634e073..264780d01ca 100644 --- a/clang/include/clang/CodeGen/CodeGenAction.h +++ b/clang/include/clang/CodeGen/CodeGenAction.h @@ -98,6 +98,6 @@ public: EmitObjAction(llvm::LLVMContext *_VMContext = nullptr); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/CodeGen/ModuleBuilder.h b/clang/include/clang/CodeGen/ModuleBuilder.h index 45570253774..8facc3c8307 100644 --- a/clang/include/clang/CodeGen/ModuleBuilder.h +++ b/clang/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/clang/include/clang/Driver/Multilib.h b/clang/include/clang/Driver/Multilib.h index 08331983255..20bb80dca27 100644 --- a/clang/include/clang/Driver/Multilib.h +++ b/clang/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/clang/include/clang/Driver/Options.h b/clang/include/clang/Driver/Options.h index c26592a5a95..2716fa9ae85 100644 --- a/clang/include/clang/Driver/Options.h +++ b/clang/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/clang/include/clang/Edit/Commit.h b/clang/include/clang/Edit/Commit.h index f512ef2a252..5cc5b9c6ff8 100644 --- a/clang/include/clang/Edit/Commit.h +++ b/clang/include/clang/Edit/Commit.h @@ -142,7 +142,7 @@ private: } }; -} // namespace edit +} } // end namespace clang diff --git a/clang/include/clang/Edit/EditedSource.h b/clang/include/clang/Edit/EditedSource.h index 88905dc040c..150a5b41b5a 100644 --- a/clang/include/clang/Edit/EditedSource.h +++ b/clang/include/clang/Edit/EditedSource.h @@ -82,7 +82,7 @@ private: FileEditsTy::iterator getActionForOffset(FileOffset Offs); }; -} // namespace edit +} } // end namespace clang diff --git a/clang/include/clang/Edit/EditsReceiver.h b/clang/include/clang/Edit/EditsReceiver.h index 267c4b1c754..600ac28ea92 100644 --- a/clang/include/clang/Edit/EditsReceiver.h +++ b/clang/include/clang/Edit/EditsReceiver.h @@ -28,7 +28,7 @@ public: virtual void remove(CharSourceRange range); }; -} // namespace edit +} } // end namespace clang diff --git a/clang/include/clang/Edit/FileOffset.h b/clang/include/clang/Edit/FileOffset.h index c68c0c62420..0c1e72b84e5 100644 --- a/clang/include/clang/Edit/FileOffset.h +++ b/clang/include/clang/Edit/FileOffset.h @@ -54,7 +54,7 @@ public: } }; -} // namespace edit +} } // end namespace clang diff --git a/clang/include/clang/Edit/Rewriters.h b/clang/include/clang/Edit/Rewriters.h index a41fc2d90c9..5e3425f56f7 100644 --- a/clang/include/clang/Edit/Rewriters.h +++ b/clang/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/clang/include/clang/Frontend/ASTConsumers.h b/clang/include/clang/Frontend/ASTConsumers.h index 4c17cb6f62f..757fcae988f 100644 --- a/clang/include/clang/Frontend/ASTConsumers.h +++ b/clang/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/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h b/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h index 9c0c18122e6..eb33273c2fb 100644 --- a/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h +++ b/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h @@ -67,6 +67,6 @@ public: } }; -} // namespace clang +} // end namspace clang #endif diff --git a/clang/include/clang/Frontend/CommandLineSourceLoc.h b/clang/include/clang/Frontend/CommandLineSourceLoc.h index 29756e79350..a78c96d23af 100644 --- a/clang/include/clang/Frontend/CommandLineSourceLoc.h +++ b/clang/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/clang/include/clang/Frontend/DiagnosticRenderer.h b/clang/include/clang/Frontend/DiagnosticRenderer.h index 142ecd40824..84a0f50823b 100644 --- a/clang/include/clang/Frontend/DiagnosticRenderer.h +++ b/clang/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/clang/include/clang/Frontend/FrontendOptions.h b/clang/include/clang/Frontend/FrontendOptions.h index c59aff6b539..c3aa226ea90 100644 --- a/clang/include/clang/Frontend/FrontendOptions.h +++ b/clang/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/clang/include/clang/Frontend/LangStandard.h b/clang/include/clang/Frontend/LangStandard.h index 1e2841c7143..8021d08942e 100644 --- a/clang/include/clang/Frontend/LangStandard.h +++ b/clang/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/clang/include/clang/Frontend/LayoutOverrideSource.h b/clang/include/clang/Frontend/LayoutOverrideSource.h index 167b4f2a602..16d032b7dd7 100644 --- a/clang/include/clang/Frontend/LayoutOverrideSource.h +++ b/clang/include/clang/Frontend/LayoutOverrideSource.h @@ -58,6 +58,6 @@ namespace clang { /// \brief Dump the overridden layouts. void dump(); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Frontend/MigratorOptions.h b/clang/include/clang/Frontend/MigratorOptions.h index cb24a025dee..8eb71b13f88 100644 --- a/clang/include/clang/Frontend/MigratorOptions.h +++ b/clang/include/clang/Frontend/MigratorOptions.h @@ -27,5 +27,5 @@ public: } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h b/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h index 969bc6f8bc4..4c57e9d404f 100644 --- a/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h +++ b/clang/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/clang/include/clang/Frontend/SerializedDiagnosticReader.h b/clang/include/clang/Frontend/SerializedDiagnosticReader.h index 320ac962723..92e99d305da 100644 --- a/clang/include/clang/Frontend/SerializedDiagnosticReader.h +++ b/clang/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/clang/include/clang/Frontend/SerializedDiagnostics.h b/clang/include/clang/Frontend/SerializedDiagnostics.h index e614f45c8cb..2032cd3988d 100644 --- a/clang/include/clang/Frontend/SerializedDiagnostics.h +++ b/clang/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/clang/include/clang/Frontend/TextDiagnosticBuffer.h b/clang/include/clang/Frontend/TextDiagnosticBuffer.h index e733768a608..3bcf824455e 100644 --- a/clang/include/clang/Frontend/TextDiagnosticBuffer.h +++ b/clang/include/clang/Frontend/TextDiagnosticBuffer.h @@ -50,6 +50,6 @@ public: void FlushDiagnostics(DiagnosticsEngine &Diags) const; }; -} // namespace clang +} // end namspace clang #endif diff --git a/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h b/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h index a49122114fc..475f07f9dc0 100644 --- a/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h +++ b/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h @@ -273,6 +273,6 @@ public: const Diagnostic &Info) override; }; -} // namespace clang +} // end namspace clang #endif diff --git a/clang/include/clang/Lex/CodeCompletionHandler.h b/clang/include/clang/Lex/CodeCompletionHandler.h index 67aedacdd1e..91c3b7811f0 100644 --- a/clang/include/clang/Lex/CodeCompletionHandler.h +++ b/clang/include/clang/Lex/CodeCompletionHandler.h @@ -66,6 +66,6 @@ public: virtual void CodeCompleteNaturalLanguage() { } }; -} // namespace clang +} #endif // LLVM_CLANG_LEX_CODECOMPLETIONHANDLER_H diff --git a/clang/include/clang/Lex/ExternalPreprocessorSource.h b/clang/include/clang/Lex/ExternalPreprocessorSource.h index e23a791a02e..33e7a2d84b8 100644 --- a/clang/include/clang/Lex/ExternalPreprocessorSource.h +++ b/clang/include/clang/Lex/ExternalPreprocessorSource.h @@ -38,6 +38,6 @@ public: virtual Module *getModule(unsigned ModuleID) = 0; }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Lex/HeaderSearchOptions.h b/clang/include/clang/Lex/HeaderSearchOptions.h index 7b5766ce481..c9c32609f19 100644 --- a/clang/include/clang/Lex/HeaderSearchOptions.h +++ b/clang/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/clang/include/clang/Lex/ModuleLoader.h b/clang/include/clang/Lex/ModuleLoader.h index cd3dda1ad36..ae79650d1fd 100644 --- a/clang/include/clang/Lex/ModuleLoader.h +++ b/clang/include/clang/Lex/ModuleLoader.h @@ -124,6 +124,6 @@ public: bool HadFatalFailure; }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Lex/ModuleMap.h b/clang/include/clang/Lex/ModuleMap.h index c2c81db3fb3..0bbcfac3b81 100644 --- a/clang/include/clang/Lex/ModuleMap.h +++ b/clang/include/clang/Lex/ModuleMap.h @@ -466,5 +466,5 @@ public: module_iterator module_end() const { return Modules.end(); } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Lex/TokenConcatenation.h b/clang/include/clang/Lex/TokenConcatenation.h index 4f5771f6aa9..a2d98b0d473 100644 --- a/clang/include/clang/Lex/TokenConcatenation.h +++ b/clang/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/clang/include/clang/Rewrite/Core/HTMLRewrite.h b/clang/include/clang/Rewrite/Core/HTMLRewrite.h index 83795148bd4..dafdf51ce63 100644 --- a/clang/include/clang/Rewrite/Core/HTMLRewrite.h +++ b/clang/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/clang/include/clang/Rewrite/Frontend/ASTConsumers.h b/clang/include/clang/Rewrite/Frontend/ASTConsumers.h index 60377911645..c9df8895041 100644 --- a/clang/include/clang/Rewrite/Frontend/ASTConsumers.h +++ b/clang/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/clang/include/clang/Rewrite/Frontend/FixItRewriter.h b/clang/include/clang/Rewrite/Frontend/FixItRewriter.h index 448ae29f4da..3b1b31e0cde 100644 --- a/clang/include/clang/Rewrite/Frontend/FixItRewriter.h +++ b/clang/include/clang/Rewrite/Frontend/FixItRewriter.h @@ -127,6 +127,6 @@ public: void Diag(SourceLocation Loc, unsigned DiagID); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Sema/AnalysisBasedWarnings.h b/clang/include/clang/Sema/AnalysisBasedWarnings.h index 5b1fbf399af..64dd2d36bef 100644 --- a/clang/include/clang/Sema/AnalysisBasedWarnings.h +++ b/clang/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/clang/include/clang/Sema/DelayedDiagnostic.h b/clang/include/clang/Sema/DelayedDiagnostic.h index 6ae4308e1b8..155b3aa72d7 100644 --- a/clang/include/clang/Sema/DelayedDiagnostic.h +++ b/clang/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/clang/include/clang/Sema/Lookup.h b/clang/include/clang/Sema/Lookup.h index 4259ab009ba..5bfee8b0d03 100644 --- a/clang/include/clang/Sema/Lookup.h +++ b/clang/include/clang/Sema/Lookup.h @@ -750,6 +750,6 @@ public: iterator end() { return iterator(Decls.end()); } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Sema/ObjCMethodList.h b/clang/include/clang/Sema/ObjCMethodList.h index ef48b06579a..b618e38f88c 100644 --- a/clang/include/clang/Sema/ObjCMethodList.h +++ b/clang/include/clang/Sema/ObjCMethodList.h @@ -53,6 +53,6 @@ struct ObjCMethodList { } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Sema/Ownership.h b/clang/include/clang/Sema/Ownership.h index fe91423d677..8acf9e82bf9 100644 --- a/clang/include/clang/Sema/Ownership.h +++ b/clang/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/clang/include/clang/Sema/ParsedTemplate.h b/clang/include/clang/Sema/ParsedTemplate.h index 586f2d7f0b7..b36425f1be8 100644 --- a/clang/include/clang/Sema/ParsedTemplate.h +++ b/clang/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/clang/include/clang/Sema/PrettyDeclStackTrace.h b/clang/include/clang/Sema/PrettyDeclStackTrace.h index 8e227a72868..ca22e640deb 100644 --- a/clang/include/clang/Sema/PrettyDeclStackTrace.h +++ b/clang/include/clang/Sema/PrettyDeclStackTrace.h @@ -42,6 +42,6 @@ public: void print(raw_ostream &OS) const override; }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index df5182b52f4..07d65f459ab 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/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/clang/include/clang/Sema/SemaConsumer.h b/clang/include/clang/Sema/SemaConsumer.h index f232c85e6d7..676646afbd5 100644 --- a/clang/include/clang/Sema/SemaConsumer.h +++ b/clang/include/clang/Sema/SemaConsumer.h @@ -43,6 +43,6 @@ namespace clang { return Consumer->SemaConsumer; } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Sema/SemaFixItUtils.h b/clang/include/clang/Sema/SemaFixItUtils.h index 4d85a632da2..343ccfb3d63 100644 --- a/clang/include/clang/Sema/SemaFixItUtils.h +++ b/clang/include/clang/Sema/SemaFixItUtils.h @@ -87,5 +87,5 @@ struct ConversionFixItGenerator { } }; -} // namespace clang +} // endof namespace clang #endif diff --git a/clang/include/clang/Sema/SemaLambda.h b/clang/include/clang/Sema/SemaLambda.h index 1e9a376dc1a..d043e2c459b 100644 --- a/clang/include/clang/Sema/SemaLambda.h +++ b/clang/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/clang/include/clang/Sema/Template.h b/clang/include/clang/Sema/Template.h index 5307bf5f5b9..b822b11126e 100644 --- a/clang/include/clang/Sema/Template.h +++ b/clang/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/clang/include/clang/Sema/TypoCorrection.h b/clang/include/clang/Sema/TypoCorrection.h index 814a85ab8e4..958aab0fce3 100644 --- a/clang/include/clang/Sema/TypoCorrection.h +++ b/clang/include/clang/Sema/TypoCorrection.h @@ -355,6 +355,6 @@ public: } }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Serialization/ASTBitCodes.h b/clang/include/clang/Serialization/ASTBitCodes.h index da217f158df..83185a870ab 100644 --- a/clang/include/clang/Serialization/ASTBitCodes.h +++ b/clang/include/clang/Serialization/ASTBitCodes.h @@ -1481,7 +1481,7 @@ namespace clang { }; /// @} - } // namespace serialization + } } // end namespace clang #endif diff --git a/clang/include/clang/Serialization/ASTDeserializationListener.h b/clang/include/clang/Serialization/ASTDeserializationListener.h index 39213311937..4b10c39d8fb 100644 --- a/clang/include/clang/Serialization/ASTDeserializationListener.h +++ b/clang/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/clang/include/clang/Serialization/ContinuousRangeMap.h b/clang/include/clang/Serialization/ContinuousRangeMap.h index 05777e31ece..244b01b22aa 100644 --- a/clang/include/clang/Serialization/ContinuousRangeMap.h +++ b/clang/include/clang/Serialization/ContinuousRangeMap.h @@ -134,6 +134,6 @@ public: friend class Builder; }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Serialization/GlobalModuleIndex.h b/clang/include/clang/Serialization/GlobalModuleIndex.h index e11605a1d39..7e205106c4e 100644 --- a/clang/include/clang/Serialization/GlobalModuleIndex.h +++ b/clang/include/clang/Serialization/GlobalModuleIndex.h @@ -202,6 +202,6 @@ public: StringRef Path); }; -} // namespace clang +} #endif diff --git a/clang/include/clang/Serialization/ModuleManager.h b/clang/include/clang/Serialization/ModuleManager.h index a5418ba4e08..ea4b57fa3ac 100644 --- a/clang/include/clang/Serialization/ModuleManager.h +++ b/clang/include/clang/Serialization/ModuleManager.h @@ -330,7 +330,6 @@ public: void viewGraph(); }; -} // namespace serialization - } // namespace clang +} } // end namespace clang::serialization #endif diff --git a/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h b/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h index 6602219d1e3..5850656916e 100644 --- a/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index 3e8a8c6f945..f02e48a4418 100644 --- a/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -538,6 +538,6 @@ public: typedef IntrusiveRefCntPtr<AnalyzerOptions> AnalyzerOptionsRef; -} // namespace clang +} #endif diff --git a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h index 28ae89d7d01..308ac8363be 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h index 129c329feb0..83b05ecc52a 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h index a543052782b..16226e94df4 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index d98dd78e40e..941d524079b 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/Checker.h b/clang/include/clang/StaticAnalyzer/Core/Checker.h index 4bd765379c4..099d76311fc 100644 --- a/clang/include/clang/StaticAnalyzer/Core/Checker.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h b/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h index ed7c384f658..8a1a82b342a 100644 --- a/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h b/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h index b2a2fbd2c38..ce512fd301e 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h index 164d7d586ef..cc8a9b8ef07 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h index f307c10b592..3e0913ec4ee 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h @@ -128,8 +128,8 @@ public: } }; -} // namespace ento +} // enAnaCtxMgrspace -} // namespace clang +} // end clang namespace #endif diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h index 8930258614b..5b007f1531d 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h index 3a0f4ef8864..1d779e6cb6e 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index d4fbde0aac6..63b8631665a 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -1027,6 +1027,6 @@ namespace llvm { return Val.get(); } }; -} // namespace llvm +} #endif diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h index 136e6d75bf8..68274f52a60 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h index 92255de2c1e..6a42df20d1c 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h index a92c3bebeff..f8760964b75 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h index 7084fa0592a..d5822e22448 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h index accbe7d3eac..e13c6410c7b 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h @@ -46,7 +46,7 @@ public: } }; -} // namespace ento -} // namespace clang +} // end ento +} // end clang #endif diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h index 946ec6f5f3c..cc3779d743f 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index 22b7d732c02..cfb1b921e9a 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h index e980ab70ae5..d8f1c34fefd 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h index 9e621191386..faa35000451 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h @@ -135,7 +135,6 @@ public: }; -} // namespace ento -} // namespace clang +}} // end clang ento namespaces #endif diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h index c57756e441a..4f0712968bf 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h index 49602374a3c..ac4e452c025 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h index 56b5d6d40c7..6b4da7db244 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h index d45cee05b53..a68d3410a87 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h index baeb09a3e1c..642e11af0e6 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h index c41ac8ed62b..a03b6306a0e 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h index ed8af4a52e6..958c8c377ea 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h index d7aee40a055..741ba0e2f29 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h index a933e658c54..1ca96a22314 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h index cef8918ff57..d39b5017d31 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h @@ -40,7 +40,7 @@ class TaintManager { TaintManager() {} }; -} // namespace ento -} // namespace clang +} +} #endif diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h index 609bbc873f1..4f1a60e6755 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h b/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h index e37c747528b..37ea05fb99c 100644 --- a/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h b/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h index c55c25e7951..36afb4bc5d7 100644 --- a/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h +++ b/clang/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/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h b/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h index 5723c2eb453..24f8042587f 100644 --- a/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h +++ b/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h @@ -38,7 +38,7 @@ public: private: llvm::StringMap<Stmt *> &Bodies; }; -} // namespace ento -} // namespace clang +} +} #endif |