]> granicus.if.org Git - clang/commit
Convert the expression trait evaluation to a static function and
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 May 2011 07:44:20 +0000 (07:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 May 2011 07:44:20 +0000 (07:44 +0000)
commit4aa0af346b7bb37548078dfab728d28d7776aff3
tree8beb06767dadfaeffe2af21c0e7dd60abb0c8193
parent83f563cc10d6265be395b608323ec52e3370915c
Convert the expression trait evaluation to a static function and
a switch with any default case. This both warns when an enumerator is
missing and asserts if a value sneaks through despite the warning.

While in there fix a bunch of coding style issues with this code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130648 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp