]> granicus.if.org Git - clang/commit
Undo turning ExtBehavior into a bitfield.
authorDaniel Jasper <djasper@google.com>
Wed, 3 May 2017 11:27:34 +0000 (11:27 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 3 May 2017 11:27:34 +0000 (11:27 +0000)
commit5e7b77cefc611842a4dda7c8368c4ebc37b79ece
tree6c89c4dfa7627ff6248ab28a02d67dc4b2a5c1ca
parent0574843db68a4ad4256fd9de93c5d1bc7b44b2a5
Undo turning ExtBehavior into a bitfield.

This produces warnings that I can't explain in a GCC build:

In file included from ../tools/clang/include/clang/Lex/LexDiagnostic.h:13:0,
                 from /usr/local/google/home/djasper/llvm/tools/clang/lib/Lex/PTHLexer.cpp:19:
../tools/clang/include/clang/Basic/Diagnostic.h:219:34: warning: ‘clang::DiagnosticsEngine::DiagState::ExtBehavior’ is too small to hold all values of ‘enum class clang::diag::Severity’ [enabled by default]
     diag::Severity ExtBehavior : 4;     // Map extensions to warnings or errors?
                                  ^

While I don't think this warning makes sense, I'd like to get this back to being
warning-free. This only seems to trigger for "enum class".

Reproducer:
https://godbolt.org/g/P2ekVd

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302012 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h