[clang-format][NFC] Don't export IsCpp in Format.h

This commit is contained in:
Owen Pan committed 2024-03-17 00:36:12 -07:00
1 parent 5a75242bc8
commit f3c5278efa
4 files changed
+5 -5

No files matched your search

-3
View File
@@ -5228,9 +5228,6 @@ extern const char *DefaultFormatStyle;
/// Different builds can modify the value to the preferred styles.
extern const char *DefaultFallbackStyle;
/// Whether the language is C/C++/Objective-C/Objective-C++.
extern bool IsCpp;
/// Construct a FormatStyle based on ``StyleName``.
///
/// ``StyleName`` can take several forms:
-2
View File
@@ -3915,8 +3915,6 @@ const char *DefaultFormatStyle = "file";
const char *DefaultFallbackStyle = "LLVM";
bool IsCpp = false;
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
loadAndParseConfigFile(StringRef ConfigFile, llvm::vfs::FileSystem *FS,
FormatStyle *Style, bool AllowUnknownOptions) {
+2
View File
@@ -18,6 +18,8 @@
namespace clang {
namespace format {
bool IsCpp = false;
const char *getTokenTypeName(TokenType Type) {
static const char *const TokNames[] = {
#define TYPE(X) #X,
+3
View File
@@ -24,6 +24,9 @@
namespace clang {
namespace format {
/// Whether the language is C/C++/Objective-C/Objective-C++.
extern bool IsCpp;
#define LIST_TOKEN_TYPES \
TYPE(ArrayInitializerLSquare) \
TYPE(ArraySubscriptLSquare) \