summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/nested-name-spec.cpp
diff options
context:
space:
mode:
authorDeLesley Hutchins <delesley@google.com>2013-08-12 21:20:55 +0000
committerDeLesley Hutchins <delesley@google.com>2013-08-12 21:20:55 +0000
commit48a317663fab26e9fd2b36f0379b348737b7be3b (patch)
tree7fdaaa3e65b668c8aab0b4ae266cb0ecb5517f98 /clang/test/SemaCXX/nested-name-spec.cpp
parentd799b1427aa88fd89661091bfe0768a4f75d12e9 (diff)
downloadbcm5719-llvm-48a317663fab26e9fd2b36f0379b348737b7be3b.tar.gz
bcm5719-llvm-48a317663fab26e9fd2b36f0379b348737b7be3b.zip
Patch by Chris Wailes <chris.wailes@gmail.com>.
Reviewed by delesley, dblaikie. Add the annotations and code needed to support a basic 'consumed' analysis. Summary: This new analysis is based on academic literature on linear types. It tracks the state of a value, either as unconsumed, consumed, or unknown. Methods are then annotated as CallableWhenUnconsumed, and when an annotated method is called while the value is in the 'consumed' state a warning is issued. A value may be tested in the conditional statement of an if-statement; when this occurs we know the state of the value in the different branches, and this information is added to our analysis. The code is still highly experimental, and the names of annotations or the algorithm may be subject to change. llvm-svn: 188206
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud