We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22f54e4 + 096c20c commit 3fe3b35Copy full SHA for 3fe3b35
clang/lib/Sema/TypeLocBuilder.h
@@ -20,7 +20,7 @@
20
namespace clang {
21
22
class TypeLocBuilder {
23
- enum { InlineCapacity = 8 * sizeof(SourceLocation) };
+ static constexpr int InlineCapacity = 8 * sizeof(SourceLocation);
24
25
/// The underlying location-data buffer. Data grows from the end
26
/// of the buffer backwards.
@@ -38,7 +38,7 @@ class TypeLocBuilder {
38
#endif
39
40
/// The inline buffer.
41
- enum { BufferMaxAlignment = alignof(void *) };
+ static constexpr int BufferMaxAlignment = alignof(void *);
42
alignas(BufferMaxAlignment) char InlineBuffer[InlineCapacity];
43
unsigned NumBytesAtAlign4;
44
bool AtAlign8;
0 commit comments