commit | 461f2d820ffb628ebdf6ef4a4474a43f8ff914e5 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sat May 25 01:35:18 2013 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sat May 25 01:35:18 2013 +0000 |
tree | 14a14c81fef9161adf339ffe49823cc21d693bec | |
parent | 45e1f0e3e7a2030e2e95863cf2bcceb7eb2476ff [diff] |
[Preprocessor] Prevent expansion of y in x ## y when x is empty When x is empty, x ## is suppressed, and when y gets expanded, the fact that it follows ## is not available in the macro expansion result. The macro definition can be checked instead, the ## will be available there regardless of what x expands to. Fixes http://llvm.org/PR12767 Patch by Harald van Dijk! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182699 91177308-0d34-0410-b5e6-96231b3b80d8