summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/StackAddrLeakChecker.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-06-28 08:39:25 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-06-28 08:39:25 +0000
commit2d69ec7a7232aa9fd804c3392650f74a8d65c55d (patch)
treedf74cd13e2630f21c5610b2e83214ad33070db51 /clang/lib/Checker/StackAddrLeakChecker.cpp
parent61176897bac13ed98d566b1cc0f8d0451ec3926b (diff)
downloadbcm5719-llvm-2d69ec7a7232aa9fd804c3392650f74a8d65c55d.tar.gz
bcm5719-llvm-2d69ec7a7232aa9fd804c3392650f74a8d65c55d.zip
Partial fix for PR7267 based on comments by John McCall on an earlier patch.
This is more targeted, as it simply provides toggle actions for the parser to turn access checking on and off. We then use these to suppress access checking only while we parse the template-id (included scope specifier) of an explicit instantiation and explicit specialization of a class template. The specialization behavior is an extension, as it seems likely a defect that the standard did not exempt them as it does explicit instantiations. This allows the very common practice of specializing trait classes to work for private, internal types. This doesn't address instantiating or specializing function templates, although those apparently already partially work. The naming and style for the Action layer isn't my favorite, comments and suggestions would be appreciated there. llvm-svn: 106993
Diffstat (limited to 'clang/lib/Checker/StackAddrLeakChecker.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud