summaryrefslogtreecommitdiff
path: root/libm/builtins.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-11-06 17:15:47 -0800
committerJosh Gao <jmgao@google.com>2017-11-06 17:23:36 -0800
commit8e13b67c64df389ce72bcb02ab3e1888da48f254 (patch)
tree267672ca0200e822e6139271abd404893880e754 /libm/builtins.cpp
parentdb4f3346958684424815720ca00a56c75fc536e0 (diff)
versioner: properly handle extern "C", "C++".
extern "C" and "C++" are parsed as a LinkageSpecDecl with the real Decl as a child node. This leads to the preprocessor sticking its guard between the extern specifier and the declaration. Update the AST visitor to add a special-case for calculating the SourceRange on a LinkageSpecDecl, and add a test. Bug: https://github.com/android-ndk/ndk/issues/440 Test: python run_tests.py Change-Id: I76445fe366cef46cfd2f16fb93d534d410c5edca
Diffstat (limited to 'libm/builtins.cpp')
0 files changed, 0 insertions, 0 deletions