summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorLubos Lunak <l.lunak@suse.cz>2013-07-20 15:05:36 +0000
committerLubos Lunak <l.lunak@suse.cz>2013-07-20 15:05:36 +0000
commit1d3ce65c190ef287ae3fa7bdff7f3621fd53b151 (patch)
tree25dcabc5aba5f7d8611007746f5dfd3003a07a83 /lib/CodeGen/CGExprCXX.cpp
parent8ee6a0dcc985c65bf5fd61a63e3f86e3ac516f5e (diff)
downloadclang-1d3ce65c190ef287ae3fa7bdff7f3621fd53b151.tar.gz
clang-1d3ce65c190ef287ae3fa7bdff7f3621fd53b151.tar.bz2
clang-1d3ce65c190ef287ae3fa7bdff7f3621fd53b151.tar.xz
add type attribute warn_unused, for -Wunused-variable warnings (pr#14253)
The functionality is equivalent to the GCC attribute. Variables of tagged types will be warned about as unused if they are not used in any way except for possible (even non-trivial) ctors/dtors called. Useful for tagging classes like std::string (which is not part of this commit). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
0 files changed, 0 insertions, 0 deletions