diff options
author | Thorsten Schütt <schuett@gmail.com> | 2020-12-23 16:56:00 +0100 |
---|---|---|
committer | Thorsten Schütt <schuett@gmail.com> | 2021-01-04 22:58:26 +0100 |
commit | efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d (patch) | |
tree | 9967045d388f16ffead61a0cfd57c5043d0efab1 /clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp | |
parent | abbef2fd46d48a0d92d86f0c00fa2973f8ae2c85 (diff) | |
download | llvm-efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.zip llvm-efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.tar.gz llvm-efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.tar.bz2 |
[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D93765
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp b/clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp index 8b718ad9..8f53894 100644 --- a/clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp +++ b/clang-tools-extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp @@ -26,7 +26,7 @@ namespace { AST_MATCHER(VarDecl, isLocalVariable) { return Node.isLocalVarDecl(); } FixItHint generateFixItHint(const VarDecl *Decl, bool IsConst) { - if (IsConst && (Decl->getStorageClass() != SC_Static)) { + if (IsConst && (Decl->getStorageClass() != StorageClass::Static)) { // No fix available if it is not a static constant, since it is difficult // to determine the proper fix in this case. return FixItHint(); |