[cfe-dev] No uninitialized warning
Pan, Wei
wei.pan at intel.com
Thu Sep 27 12:01:08 PDT 2012
Command "clang a.cpp -Weverything" reports a warning as expected for the following code
int main() {
int m(m);
return m;
}
However, no warning is generated for if m is declared as a reference:
int main() {
int &m(m);
return m;
}
Notice that "clang a.cpp --analyze" catches this. Should "clang a.cpp -Weverything" catch it as well? Thanks!
Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120927/6a9ca7e4/attachment.html>
More information about the cfe-dev
mailing list