Skip to content

Commit 096c20c

Browse files
committed
[clang][NFC] Convert enums in TypeLocBuilder into constants
1 parent ed95624 commit 096c20c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/TypeLocBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace clang {
2121

2222
class TypeLocBuilder {
23-
enum { InlineCapacity = 8 * sizeof(SourceLocation) };
23+
static constexpr int InlineCapacity = 8 * sizeof(SourceLocation);
2424

2525
/// The underlying location-data buffer. Data grows from the end
2626
/// of the buffer backwards.
@@ -38,7 +38,7 @@ class TypeLocBuilder {
3838
#endif
3939

4040
/// The inline buffer.
41-
enum { BufferMaxAlignment = alignof(void *) };
41+
static constexpr int BufferMaxAlignment = alignof(void *);
4242
alignas(BufferMaxAlignment) char InlineBuffer[InlineCapacity];
4343
unsigned NumBytesAtAlign4;
4444
bool AtAlign8;

0 commit comments

Comments
 (0)