commit | 4aa0af346b7bb37548078dfab728d28d7776aff3 | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Sun May 01 07:44:20 2011 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Sun May 01 07:44:20 2011 +0000 |
tree | 8beb06767dadfaeffe2af21c0e7dd60abb0c8193 | |
parent | 83f563cc10d6265be395b608323ec52e3370915c [diff] |
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