diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-04 09:47:17 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-04 09:47:17 +0000 |
commit | a24b9802d3009c448387174f70bcd9ab44b8a7ea (patch) | |
tree | ca2683c4c274a6b06ae3b66047c8d185b7bddbe6 /lib/StaticAnalyzer/Checkers/CStringChecker.cpp | |
parent | 810e08126fc5d270976e5513baa1810882301bb0 (diff) |
Invert the loop for detecting installed GCC trees. This make the loop
find the newest GCC available, among other goodness. It makes the entire
system much less prone to error from prefixes and/or system roots
pruning early the set of triples and GCC versions available.
Also, improve some comments and simplify the forms of some of the loops.
This causes the driver to stat directories more often than is strictly
necessary, but the alternatives which I looked at that still
accomplished this goal needed quite a bit more code and were likely not
much faster.
Test cases for this, now that our behavior here is significantly more
principled and predictable, should come tomorrow as I walk back through
VMs looking for edge cases that are missed after this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/CStringChecker.cpp')
0 files changed, 0 insertions, 0 deletions