Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 8ca7705

Browse files
committed
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
1 parent 4dcc0f7 commit 8ca7705

File tree

344 files changed

+619
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+619
-643
lines changed

examples/PrintFunctionNames/PrintFunctionNames.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class PrintFunctionNamesAction : public PluginASTAction {
117117

118118
};
119119

120-
} // namespace
120+
}
121121

122122
static FrontendPluginRegistry::Add<PrintFunctionNamesAction>
123123
X("print-fns", "print function names");

include/clang/ARCMigrate/ARCMTActions.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ObjCMigrateAction : public WrapperFrontendAction {
7070
bool BeginInvocation(CompilerInstance &CI) override;
7171
};
7272

73-
} // namespace arcmt
74-
} // namespace clang
73+
}
74+
}
7575

7676
#endif

include/clang/AST/ASTImporter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,6 @@ namespace clang {
290290
bool IsStructurallyEquivalent(QualType From, QualType To,
291291
bool Complain = true);
292292
};
293-
} // namespace clang
293+
}
294294

295295
#endif // LLVM_CLANG_AST_ASTIMPORTER_H

include/clang/AST/ASTLambda.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) {
7575
return DC->getParent();
7676
}
7777

78-
} // namespace clang
78+
} // clang
7979

8080
#endif

include/clang/AST/ASTVector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,5 +400,5 @@ void ASTVector<T>::grow(const ASTContext &C, size_t MinSize) {
400400
Capacity.setPointer(Begin+NewCapacity);
401401
}
402402

403-
} // namespace clang
403+
} // end: clang namespace
404404
#endif

include/clang/AST/BaseSubobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ template <> struct isPodLike<clang::BaseSubobject> {
8282
static const bool value = true;
8383
};
8484

85-
} // namespace llvm
85+
}
8686

8787
#endif

include/clang/AST/CanonicalType.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ CanProxy<Type> CanTypeIterator<InputIterator>::operator->() const {
659659
return CanProxy<Type>(*this);
660660
}
661661

662-
} // namespace clang
662+
}
663663

664664

665665
#endif

include/clang/AST/DeclAccessPair.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class DeclAccessPair {
5959
operator NamedDecl*() const { return getDecl(); }
6060
NamedDecl *operator->() const { return getDecl(); }
6161
};
62-
} // namespace clang
62+
}
6363

6464
// Take a moment to tell SmallVector that DeclAccessPair is POD.
6565
namespace llvm {

include/clang/AST/DeclBase.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Stmt;
5454
class StoredDeclsMap;
5555
class TranslationUnitDecl;
5656
class UsingDirectiveDecl;
57-
} // namespace clang
57+
}
5858

5959
namespace clang {
6060

@@ -1799,7 +1799,7 @@ struct cast_convert_decl_context<ToTy, true> {
17991799
};
18001800

18011801

1802-
} // namespace clang
1802+
} // end clang.
18031803

18041804
namespace llvm {
18051805

include/clang/AST/DeclFriend.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,6 @@ inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) {
242242
data().FirstFriend = FD;
243243
}
244244

245-
} // namespace clang
245+
}
246246

247247
#endif

include/clang/AST/DeclGroup.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class DeclGroupRef {
134134
}
135135
};
136136

137-
} // namespace clang
137+
} // end clang namespace
138138

139139
namespace llvm {
140140
// DeclGroupRef is "like a pointer", implement PointerLikeTypeTraits.
@@ -151,5 +151,5 @@ namespace llvm {
151151
}
152152
enum { NumLowBitsAvailable = 0 };
153153
};
154-
} // namespace llvm
154+
}
155155
#endif

include/clang/AST/DependentDiagnostic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,6 @@ inline DeclContext::ddiag_range DeclContext::ddiags() const {
184184
return ddiag_range(ddiag_iterator(Map->FirstDiagnostic), ddiag_iterator());
185185
}
186186

187-
} // namespace clang
187+
}
188188

189189
#endif

include/clang/AST/EvaluatedExprVisitor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ class ConstEvaluatedExprVisitor
124124
EvaluatedExprVisitorBase<make_const_ptr, ImplClass>(Context) { }
125125
};
126126

127-
} // namespace clang
127+
}
128128

129129
#endif // LLVM_CLANG_AST_EVALUATEDEXPRVISITOR_H

include/clang/AST/ExternalASTSource.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ struct PointerLikeTypeTraits<
467467
NumLowBitsAvailable = PointerLikeTypeTraits<T>::NumLowBitsAvailable - 1
468468
};
469469
};
470-
} // namespace llvm
470+
}
471471

472472
namespace clang {
473473
/// \brief Represents a lazily-loaded vector of data.

include/clang/AST/Mangle.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,6 @@ class MicrosoftMangleContext : public MangleContext {
240240
static MicrosoftMangleContext *create(ASTContext &Context,
241241
DiagnosticsEngine &Diags);
242242
};
243-
} // namespace clang
243+
}
244244

245245
#endif

include/clang/AST/NestedNameSpecifier.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,6 @@ inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,
510510
return DB;
511511
}
512512

513-
} // namespace clang
513+
}
514514

515515
#endif

include/clang/AST/OperationKinds.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,6 @@ enum ObjCBridgeCastKind {
350350
OBC_BridgeRetained
351351
};
352352

353-
} // namespace clang
353+
}
354354

355355
#endif

include/clang/AST/ParentMap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ class ParentMap {
6363
}
6464
};
6565

66-
} // namespace clang
66+
} // end clang namespace
6767
#endif

include/clang/AST/Redeclarable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,6 @@ class Mergeable {
272272
bool isFirstDecl() const { return getFirstDecl() == this; }
273273
};
274274

275-
} // namespace clang
275+
}
276276

277277
#endif

include/clang/AST/Type.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace llvm {
6767

6868
template <>
6969
struct isPodLike<clang::QualType> { static const bool value = true; };
70-
} // namespace llvm
70+
}
7171

7272
namespace clang {
7373
class ASTContext;
@@ -1008,7 +1008,7 @@ class QualType {
10081008
static DestructionKind isDestructedTypeImpl(QualType type);
10091009
};
10101010

1011-
} // namespace clang
1011+
} // end clang.
10121012

10131013
namespace llvm {
10141014
/// Implement simplify_type for QualType, so that we can dyn_cast from QualType

include/clang/AST/TypeLoc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,6 @@ class AtomicTypeLoc : public ConcreteTypeLoc<UnqualTypeLoc, AtomicTypeLoc,
19521952
};
19531953

19541954

1955-
} // namespace clang
1955+
}
19561956

19571957
#endif

include/clang/AST/TypeOrdering.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ namespace llvm {
7474
return LHS == RHS;
7575
}
7676
};
77-
} // namespace llvm
77+
}
7878

7979
#endif

include/clang/AST/VTTBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,6 @@ class VTTBuilder {
157157

158158
};
159159

160-
} // namespace clang
160+
}
161161

162162
#endif

include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ class CFGReverseBlockReachabilityAnalysis {
4444
void mapReachability(const CFGBlock *Dst);
4545
};
4646

47-
} // namespace clang
47+
}
4848

4949
#endif

include/clang/Analysis/Analyses/Consumed.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ namespace consumed {
260260
/// exactly once.
261261
void run(AnalysisDeclContext &AC);
262262
};
263-
} // namespace consumed
264-
} // namespace clang
263+
}} // end namespace clang::consumed
265264

266265
#endif

include/clang/Analysis/Analyses/FormatString.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class FormatSpecifier {
393393
static bool namedTypeToLengthModifier(QualType QT, LengthModifier &LM);
394394
};
395395

396-
} // namespace analyze_format_string
396+
} // end analyze_format_string namespace
397397

398398
//===----------------------------------------------------------------------===//
399399
/// Pieces specific to fprintf format strings.
@@ -529,7 +529,7 @@ class PrintfSpecifier : public analyze_format_string::FormatSpecifier {
529529
bool hasValidPrecision() const;
530530
bool hasValidFieldWidth() const;
531531
};
532-
} // namespace analyze_printf
532+
} // end analyze_printf namespace
533533

534534
//===----------------------------------------------------------------------===//
535535
/// Pieces specific to fscanf format strings.
@@ -595,7 +595,7 @@ class ScanfSpecifier : public analyze_format_string::FormatSpecifier {
595595
static ScanfSpecifier Parse(const char *beg, const char *end);
596596
};
597597

598-
} // namespace analyze_scanf
598+
} // end analyze_scanf namespace
599599

600600
//===----------------------------------------------------------------------===//
601601
// Parsing and processing of format strings (both fprintf and fscanf).
@@ -665,6 +665,6 @@ bool ParseScanfString(FormatStringHandler &H,
665665
const char *beg, const char *end, const LangOptions &LO,
666666
const TargetInfo &Target);
667667

668-
} // namespace analyze_format_string
669-
} // namespace clang
668+
} // end analyze_format_string namespace
669+
} // end clang namespace
670670
#endif

include/clang/Analysis/Analyses/PostOrderCFGView.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class PostOrderCFGView : public ManagedAnalysis {
109109
static PostOrderCFGView *create(AnalysisDeclContext &analysisContext);
110110
};
111111

112-
} // namespace clang
112+
} // end clang namespace
113113

114114
#endif
115115

include/clang/Analysis/Analyses/PseudoConstantAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ class PseudoConstantAnalysis {
4040
bool Analyzed;
4141
};
4242

43-
} // namespace clang
43+
}
4444

4545
#endif

include/clang/Analysis/Analyses/ReachableCode.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ unsigned ScanReachableFromBlock(const CFGBlock *Start,
6464
void FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP,
6565
Callback &CB);
6666

67-
} // namespace reachable_code
68-
} // namespace clang
67+
}} // end namespace clang::reachable_code
6968

7069
#endif

include/clang/Analysis/Analyses/ThreadSafety.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,5 @@ void threadSafetyCleanup(BeforeSet *Cache);
222222
/// of access.
223223
LockKind getLockKindFromAccessKind(AccessKind AK);
224224

225-
} // namespace threadSafety
226-
} // namespace clang
225+
}} // end namespace clang::threadSafety
227226
#endif

include/clang/Analysis/Analyses/ThreadSafetyLogical.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ bool LExpr::implies(const LExpr *RHS) const {
100100
return lexpr::implies(this, RHS);
101101
}
102102

103-
} // namespace lexpr
104-
} // namespace threadSafety
105-
} // namespace clang
103+
}
104+
}
105+
}
106106

107107
#endif
108108

include/clang/Analysis/Analyses/UninitializedValues.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ void runUninitializedVariablesAnalysis(const DeclContext &dc, const CFG &cfg,
122122
UninitVariablesHandler &handler,
123123
UninitVariablesAnalysisStats &stats);
124124

125-
} // namespace clang
125+
}
126126
#endif

include/clang/Analysis/AnalysisContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,5 +476,5 @@ class AnalysisDeclContextManager {
476476
}
477477
};
478478

479-
} // namespace clang
479+
} // end clang namespace
480480
#endif

include/clang/Analysis/CFG.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1109,5 +1109,5 @@ template <> struct GraphTraits<Inverse<const ::clang::CFG*> >
11091109
return F->nodes_end();
11101110
}
11111111
};
1112-
} // namespace llvm
1112+
} // end llvm namespace
11131113
#endif

include/clang/Analysis/CFGStmtMap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ class CFGStmtMap {
4848
}
4949
};
5050

51-
} // namespace clang
51+
} // end clang namespace
5252
#endif

include/clang/Analysis/CallGraph.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class CallGraphNode {
166166
void dump() const;
167167
};
168168

169-
} // namespace clang
169+
} // end clang namespace
170170

171171
// Graph traits for iteration, viewing.
172172
namespace llvm {
@@ -248,6 +248,6 @@ template <> struct GraphTraits<const clang::CallGraph*> :
248248
}
249249
};
250250

251-
} // namespace llvm
251+
} // end llvm namespace
252252

253253
#endif

include/clang/Analysis/CodeInjector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ class CodeInjector {
4141
virtual Stmt *getBody(const FunctionDecl *D) = 0;
4242
virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
4343
};
44-
} // namespace clang
44+
}
4545

4646
#endif

include/clang/Analysis/DomainSpecific/CocoaConventions.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace coreFoundation {
3737
bool followsCreateRule(const FunctionDecl *FD);
3838
}
3939

40-
} // namespace ento
41-
} // namespace clang
40+
}} // end: "clang:ento"
4241

4342
#endif

include/clang/Analysis/DomainSpecific/ObjCNoReturn.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ class ObjCNoReturn {
4141
/// return.
4242
bool isImplicitNoReturn(const ObjCMessageExpr *ME);
4343
};
44-
} // namespace clang
44+
}
4545

4646
#endif

include/clang/Analysis/Support/BumpVector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,5 @@ void BumpVector<T>::grow(BumpVectorContext &C, size_t MinSize) {
240240
Capacity = Begin+NewCapacity;
241241
}
242242

243-
} // namespace clang
243+
} // end: clang namespace
244244
#endif

0 commit comments

Comments
 (0)