File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5228,9 +5228,6 @@ extern const char *DefaultFormatStyle;
52285228// / Different builds can modify the value to the preferred styles.
52295229extern const char *DefaultFallbackStyle;
52305230
5231- // / Whether the language is C/C++/Objective-C/Objective-C++.
5232- extern bool IsCpp;
5233-
52345231// / Construct a FormatStyle based on ``StyleName``.
52355232// /
52365233// / ``StyleName`` can take several forms:
Original file line number Diff line number Diff line change @@ -3915,8 +3915,6 @@ const char *DefaultFormatStyle = "file";
39153915
39163916const char *DefaultFallbackStyle = " LLVM" ;
39173917
3918- bool IsCpp = false ;
3919-
39203918llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
39213919loadAndParseConfigFile (StringRef ConfigFile, llvm::vfs::FileSystem *FS,
39223920 FormatStyle *Style, bool AllowUnknownOptions) {
Original file line number Diff line number Diff line change 1818namespace clang {
1919namespace format {
2020
21+ bool IsCpp = false ;
22+
2123const char *getTokenTypeName (TokenType Type) {
2224 static const char *const TokNames[] = {
2325#define TYPE (X ) #X,
Original file line number Diff line number Diff line change 2424namespace clang {
2525namespace format {
2626
27+ // / Whether the language is C/C++/Objective-C/Objective-C++.
28+ extern bool IsCpp;
29+
2730#define LIST_TOKEN_TYPES \
2831 TYPE (ArrayInitializerLSquare) \
2932 TYPE (ArraySubscriptLSquare) \
You can’t perform that action at this time.
0 commit comments