Skip to content

Commit

Permalink
Revert r240270 ("Fixed/added namespace ending comments using clang-ti…
Browse files Browse the repository at this point in the history
…dy").

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240353 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
alexfh committed Jun 22, 2015
1 parent 4dcc0f7 commit 8ca7705
Show file tree
Hide file tree
Showing 344 changed files with 619 additions and 643 deletions.
2 changes: 1 addition & 1 deletion examples/PrintFunctionNames/PrintFunctionNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class PrintFunctionNamesAction : public PluginASTAction {

};

} // namespace
}

static FrontendPluginRegistry::Add<PrintFunctionNamesAction>
X("print-fns", "print function names");
4 changes: 2 additions & 2 deletions include/clang/ARCMigrate/ARCMTActions.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ObjCMigrateAction : public WrapperFrontendAction {
bool BeginInvocation(CompilerInstance &CI) override;
};

} // namespace arcmt
} // namespace clang
}
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/ASTImporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,6 @@ namespace clang {
bool IsStructurallyEquivalent(QualType From, QualType To,
bool Complain = true);
};
} // namespace clang
}

#endif // LLVM_CLANG_AST_ASTIMPORTER_H
2 changes: 1 addition & 1 deletion include/clang/AST/ASTLambda.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) {
return DC->getParent();
}

} // namespace clang
} // clang

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/ASTVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,5 +400,5 @@ void ASTVector<T>::grow(const ASTContext &C, size_t MinSize) {
Capacity.setPointer(Begin+NewCapacity);
}

} // namespace clang
} // end: clang namespace
#endif
2 changes: 1 addition & 1 deletion include/clang/AST/BaseSubobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ template <> struct isPodLike<clang::BaseSubobject> {
static const bool value = true;
};

} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/CanonicalType.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ CanProxy<Type> CanTypeIterator<InputIterator>::operator->() const {
return CanProxy<Type>(*this);
}

} // namespace clang
}


#endif
2 changes: 1 addition & 1 deletion include/clang/AST/DeclAccessPair.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DeclAccessPair {
operator NamedDecl*() const { return getDecl(); }
NamedDecl *operator->() const { return getDecl(); }
};
} // namespace clang
}

// Take a moment to tell SmallVector that DeclAccessPair is POD.
namespace llvm {
Expand Down
4 changes: 2 additions & 2 deletions include/clang/AST/DeclBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Stmt;
class StoredDeclsMap;
class TranslationUnitDecl;
class UsingDirectiveDecl;
} // namespace clang
}

namespace clang {

Expand Down Expand Up @@ -1799,7 +1799,7 @@ struct cast_convert_decl_context<ToTy, true> {
};


} // namespace clang
} // end clang.

namespace llvm {

Expand Down
2 changes: 1 addition & 1 deletion include/clang/AST/DeclFriend.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,6 @@ inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) {
data().FirstFriend = FD;
}

} // namespace clang
}

#endif
4 changes: 2 additions & 2 deletions include/clang/AST/DeclGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class DeclGroupRef {
}
};

} // namespace clang
} // end clang namespace

namespace llvm {
// DeclGroupRef is "like a pointer", implement PointerLikeTypeTraits.
Expand All @@ -151,5 +151,5 @@ namespace llvm {
}
enum { NumLowBitsAvailable = 0 };
};
} // namespace llvm
}
#endif
2 changes: 1 addition & 1 deletion include/clang/AST/DependentDiagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ inline DeclContext::ddiag_range DeclContext::ddiags() const {
return ddiag_range(ddiag_iterator(Map->FirstDiagnostic), ddiag_iterator());
}

} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/EvaluatedExprVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ class ConstEvaluatedExprVisitor
EvaluatedExprVisitorBase<make_const_ptr, ImplClass>(Context) { }
};

} // namespace clang
}

#endif // LLVM_CLANG_AST_EVALUATEDEXPRVISITOR_H
2 changes: 1 addition & 1 deletion include/clang/AST/ExternalASTSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ struct PointerLikeTypeTraits<
NumLowBitsAvailable = PointerLikeTypeTraits<T>::NumLowBitsAvailable - 1
};
};
} // namespace llvm
}

namespace clang {
/// \brief Represents a lazily-loaded vector of data.
Expand Down
2 changes: 1 addition & 1 deletion include/clang/AST/Mangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ class MicrosoftMangleContext : public MangleContext {
static MicrosoftMangleContext *create(ASTContext &Context,
DiagnosticsEngine &Diags);
};
} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/NestedNameSpecifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,6 @@ inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,
return DB;
}

} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/OperationKinds.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,6 @@ enum ObjCBridgeCastKind {
OBC_BridgeRetained
};

} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/ParentMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ class ParentMap {
}
};

} // namespace clang
} // end clang namespace
#endif
2 changes: 1 addition & 1 deletion include/clang/AST/Redeclarable.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,6 @@ class Mergeable {
bool isFirstDecl() const { return getFirstDecl() == this; }
};

} // namespace clang
}

#endif
4 changes: 2 additions & 2 deletions include/clang/AST/Type.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace llvm {

template <>
struct isPodLike<clang::QualType> { static const bool value = true; };
} // namespace llvm
}

namespace clang {
class ASTContext;
Expand Down Expand Up @@ -1008,7 +1008,7 @@ class QualType {
static DestructionKind isDestructedTypeImpl(QualType type);
};

} // namespace clang
} // end clang.

namespace llvm {
/// Implement simplify_type for QualType, so that we can dyn_cast from QualType
Expand Down
2 changes: 1 addition & 1 deletion include/clang/AST/TypeLoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,6 @@ class AtomicTypeLoc : public ConcreteTypeLoc<UnqualTypeLoc, AtomicTypeLoc,
};


} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/TypeOrdering.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ namespace llvm {
return LHS == RHS;
}
};
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/clang/AST/VTTBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ class VTTBuilder {

};

} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ class CFGReverseBlockReachabilityAnalysis {
void mapReachability(const CFGBlock *Dst);
};

} // namespace clang
}

#endif
3 changes: 1 addition & 2 deletions include/clang/Analysis/Analyses/Consumed.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ namespace consumed {
/// exactly once.
void run(AnalysisDeclContext &AC);
};
} // namespace consumed
} // namespace clang
}} // end namespace clang::consumed

#endif
10 changes: 5 additions & 5 deletions include/clang/Analysis/Analyses/FormatString.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class FormatSpecifier {
static bool namedTypeToLengthModifier(QualType QT, LengthModifier &LM);
};

} // namespace analyze_format_string
} // end analyze_format_string namespace

//===----------------------------------------------------------------------===//
/// Pieces specific to fprintf format strings.
Expand Down Expand Up @@ -529,7 +529,7 @@ class PrintfSpecifier : public analyze_format_string::FormatSpecifier {
bool hasValidPrecision() const;
bool hasValidFieldWidth() const;
};
} // namespace analyze_printf
} // end analyze_printf namespace

//===----------------------------------------------------------------------===//
/// Pieces specific to fscanf format strings.
Expand Down Expand Up @@ -595,7 +595,7 @@ class ScanfSpecifier : public analyze_format_string::FormatSpecifier {
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).
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion include/clang/Analysis/Analyses/PostOrderCFGView.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class PostOrderCFGView : public ManagedAnalysis {
static PostOrderCFGView *create(AnalysisDeclContext &analysisContext);
};

} // namespace clang
} // end clang namespace

#endif

2 changes: 1 addition & 1 deletion include/clang/Analysis/Analyses/PseudoConstantAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ class PseudoConstantAnalysis {
bool Analyzed;
};

} // namespace clang
}

#endif
3 changes: 1 addition & 2 deletions include/clang/Analysis/Analyses/ReachableCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions include/clang/Analysis/Analyses/ThreadSafety.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,5 @@ void threadSafetyCleanup(BeforeSet *Cache);
/// of access.
LockKind getLockKindFromAccessKind(AccessKind AK);

} // namespace threadSafety
} // namespace clang
}} // end namespace clang::threadSafety
#endif
6 changes: 3 additions & 3 deletions include/clang/Analysis/Analyses/ThreadSafetyLogical.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ bool LExpr::implies(const LExpr *RHS) const {
return lexpr::implies(this, RHS);
}

} // namespace lexpr
} // namespace threadSafety
} // namespace clang
}
}
}

#endif

2 changes: 1 addition & 1 deletion include/clang/Analysis/Analyses/UninitializedValues.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ void runUninitializedVariablesAnalysis(const DeclContext &dc, const CFG &cfg,
UninitVariablesHandler &handler,
UninitVariablesAnalysisStats &stats);

} // namespace clang
}
#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/AnalysisContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,5 +476,5 @@ class AnalysisDeclContextManager {
}
};

} // namespace clang
} // end clang namespace
#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/CFG.h
Original file line number Diff line number Diff line change
Expand Up @@ -1109,5 +1109,5 @@ template <> struct GraphTraits<Inverse<const ::clang::CFG*> >
return F->nodes_end();
}
};
} // namespace llvm
} // end llvm namespace
#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/CFGStmtMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ class CFGStmtMap {
}
};

} // namespace clang
} // end clang namespace
#endif
4 changes: 2 additions & 2 deletions include/clang/Analysis/CallGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class CallGraphNode {
void dump() const;
};

} // namespace clang
} // end clang namespace

// Graph traits for iteration, viewing.
namespace llvm {
Expand Down Expand Up @@ -248,6 +248,6 @@ template <> struct GraphTraits<const clang::CallGraph*> :
}
};

} // namespace llvm
} // end llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/CodeInjector.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ class CodeInjector {
virtual Stmt *getBody(const FunctionDecl *D) = 0;
virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
};
} // namespace clang
}

#endif
3 changes: 1 addition & 2 deletions include/clang/Analysis/DomainSpecific/CocoaConventions.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace coreFoundation {
bool followsCreateRule(const FunctionDecl *FD);
}

} // namespace ento
} // namespace clang
}} // end: "clang:ento"

#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/DomainSpecific/ObjCNoReturn.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ class ObjCNoReturn {
/// return.
bool isImplicitNoReturn(const ObjCMessageExpr *ME);
};
} // namespace clang
}

#endif
2 changes: 1 addition & 1 deletion include/clang/Analysis/Support/BumpVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ void BumpVector<T>::grow(BumpVectorContext &C, size_t MinSize) {
Capacity = Begin+NewCapacity;
}

} // namespace clang
} // end: clang namespace
#endif
Loading

0 comments on commit 8ca7705

Please sign in to comment.