Extend the "__is_pod" hack, which demotes various type trait keywords
(__is_pod, __is_signed, etc.) to normal identifiers if they are encountered in certain places in the grammar where we know that prior versions of libstdc++ or libc++ use them, to still allow the use of these keywords as type traits. Fixes <rdar://problem/9836262> and PR10184. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162937 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Parse/Parser.h 4 additions, 0 deletionsinclude/clang/Parse/Parser.h
- lib/Lex/PPMacroExpansion.cpp 2 additions, 12 deletionslib/Lex/PPMacroExpansion.cpp
- lib/Parse/ParseExpr.cpp 50 additions, 1 deletionlib/Parse/ParseExpr.cpp
- test/SemaCXX/libstdcxx_is_pod_hack.cpp 10 additions, 2 deletionstest/SemaCXX/libstdcxx_is_pod_hack.cpp
Loading
Please register or sign in to comment