Skip to content

Commit a7402b0

Browse files
committed
[clang][NFC] Convert Parser::ScopeCacheSize to a constant
1 parent a24457e commit a7402b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Parser : public CodeCompletionHandler {
9494
StackExhaustionHandler StackHandler;
9595

9696
/// ScopeCache - Cache scopes to reduce malloc traffic.
97-
enum { ScopeCacheSize = 16 };
97+
static constexpr int ScopeCacheSize = 16;
9898
unsigned NumCachedScopes;
9999
Scope *ScopeCache[ScopeCacheSize];
100100

0 commit comments

Comments
 (0)