summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-26 19:27:00 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-26 19:27:00 +0000
commitec599a906b7388f6ebdd3d00d6904473b69ec288 (patch)
tree6eac50103586441591f2527e034c4f4fd958ed53 /lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
parent2993854bb464c08f060e1f704f4c0b6dbc9ccda8 (diff)
downloadbcm5719-llvm-ec599a906b7388f6ebdd3d00d6904473b69ec288.tar.gz
bcm5719-llvm-ec599a906b7388f6ebdd3d00d6904473b69ec288.zip
SemaCXX: Support templates in availability attributes
If the availability context is `FunctionTemplateDecl`, we should look through it to the `FunctionDecl`. This prevents a diagnostic in the following case: class C __attribute__((unavailable)); template <class T> void foo(C&) __attribute__((unavailable)); This adds tests for availability in templates in many other cases, but that was the only case that failed before this patch. I added a feature `__has_feature(attribute_availability_in_templates)` so users can test for this. rdar://problem/24561029 llvm-svn: 262050
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud