- Feb 03, 2011
-
-
Rafael Espindola authored
This reopens PR99114, but that one at least can be avoided with an #include. PR9130 cannot. llvm-svn: 124780
-
Rafael Espindola authored
links. llvm-svn: 124776
-
Daniel Dunbar authored
the atomic writes option, since the intent is that this option be set for an entire build, which may have any number of compiler instances writing to the same output file. llvm-svn: 124772
-
Anders Carlsson authored
is not defined in the current translation unit. Doing so lead to compile errors such as PR9114. Instead, when CodeGen is building the vtable, don't try to emit a definition for functions that aren't marked used in the current translation unit. Fixes PR9114. llvm-svn: 124768
-
Douglas Gregor authored
redundant searches in the string. No functionality change. llvm-svn: 124760
-
Ted Kremenek authored
Based on user feedback, swap -Wuninitialized diagnostics to have the warning refer to the bad use, and the note to the variable declaration. llvm-svn: 124758
-
Fariborz Jahanian authored
llvm-svn: 124757
-
- Feb 02, 2011
-
-
Devang Patel authored
llvm-svn: 124756
-
Douglas Gregor authored
on that name. Canonicalization eliminates silliness such as "." and "foo/.." that breaks the uniquing of files in the presence of virtual files or files whose inode numbers have changed during parsing/re-parsing. c-index-test isn't able to create this crazy situation, so I've resorted to testing outside of the Clang tree. Fixes <rdar://problem/8928220>. Note that this hackery will go away once we have a real virtual file system on which we can layer FileManager; the virtual-files hack is showing cracks. llvm-svn: 124754
-
Devang Patel authored
llvm-svn: 124753
-
Daniel Dunbar authored
CC_PRINT_OPTIONS and can be used to get some out-of-band information on header usage from a build. llvm-svn: 124751
-
Daniel Dunbar authored
information to a file. llvm-svn: 124750
-
Daniel Dunbar authored
ones outside the predefines buffer (which is what -H does). llvm-svn: 124749
-
Fariborz Jahanian authored
but has non-empty data fields, such as array of zero length, remains zero. // rdar://8945175 llvm-svn: 124741
-
Douglas Gregor authored
savings of 25% sounds impressive, except that this amounted to only about 360k in our standard "large" completion result set (40,000 results). Since code completion is performance-sensitive, the 4% slowdown due to uniquing outweighs the 360k benefit. llvm-svn: 124737
-
Benjamin Kramer authored
llvm-svn: 124736
-
Argyrios Kyrtzidis authored
llvm-svn: 124735
-
Daniel Dunbar authored
callbacks class. - Aside from being generally cleaner, this also allows -H to work correctly in modes other than standard preprocessing (e.g., -c, -MM, etc.) llvm-svn: 124723
-
John McCall authored
on, as well as more reliably limiting invalid references to locals from nested scopes. llvm-svn: 124721
-
Nick Lewycky authored
Fixes PR9121! llvm-svn: 124718
-
Ted Kremenek authored
Remove redundant check to not warn for warn_equality_with_extra_parens if we are in a macro. This is checked twice. llvm-svn: 124714
-
Douglas Gregor authored
speed but saves us about 25% of the memory usage for strings. llvm-svn: 124704
-
John McCall authored
llvm-svn: 124702
-
Fariborz Jahanian authored
llvm-svn: 124701
-
Nick Lewycky authored
llvm-svn: 124699
-
- Feb 01, 2011
-
-
Douglas Gregor authored
the string copying goes through a single place that can have associated state. llvm-svn: 124698
-
Ted Kremenek authored
Macros frequently contain extra '()' to make instantiation less error prone. This warning was flagging a ton of times on postgresql because of its use of macros. llvm-svn: 124695
-
Argyrios Kyrtzidis authored
llvm-svn: 124689
-
John McCall authored
bit-pattern. It's not clear that this is actually useful given current language restrictions. llvm-svn: 124685
-
Nick Lewycky authored
llvm-svn: 124684
-
Douglas Gregor authored
eliminating the need to copy those strings. llvm-svn: 124683
-
Argyrios Kyrtzidis authored
llvm-svn: 124680
-
Argyrios Kyrtzidis authored
llvm-svn: 124675
-
Argyrios Kyrtzidis authored
llvm-svn: 124674
-
Douglas Gregor authored
BumpPtrAllocator, rather than manually new/delete'ing them. This optimization also allows us to avoid allocating memory for and copying constant strings (e.g., "return", "class"). This also required embedding the priority and availability of results within the code completion string, to avoid extra memory allocation within libclang. llvm-svn: 124673
-
Argyrios Kyrtzidis authored
It's highly likely that the user intended an assignment used as condition. Addresses rdar://8848646. llvm-svn: 124668
-
Ted Kremenek authored
Add temporary hack to -Wuninitialize to create a separate CFG (for C++ code) that doesn't include implicit dtors. Implicit dtors confuse the ad hoc path-sensitivity of UninitializedValuesV2.cpp. This isn't the ideal solution, as it will directly impact compile time, but should significantly reduce the noise of -Wuninitialized on some code bases. This immediately "fixes" the false positive reported in PR 9063, although this isn't the right fix in the long run. llvm-svn: 124667
-
Ted Kremenek authored
Enhance -Wuninitialized to better reason about || and &&, tracking dual dataflow facts and properly merging them. Fixes PR 9076. llvm-svn: 124666
-
Douglas Gregor authored
from Alex Miller! llvm-svn: 124663
-
Douglas Gregor authored
PackExpansionType in the AST reader. We need more testing for variadic templates + PCH, but this fixes PR9073. llvm-svn: 124662
-