summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2015-07-02 13:19:48 +0000
committerBen Langmuir <blangmuir@apple.com>2015-07-02 13:19:48 +0000
commita525400d37cf2920479862acafedc83e2d7c5fb6 (patch)
tree490f393efa9e52609687560b83d2cd96d806b064 /clang/lib/Format/Format.cpp
parent553a5b00412c34e2b9101a993a6e7368a03fca68 (diff)
downloadbcm5719-llvm-a525400d37cf2920479862acafedc83e2d7c5fb6.tar.gz
bcm5719-llvm-a525400d37cf2920479862acafedc83e2d7c5fb6.zip
[Modules] Be consistent about finding a module for framework headers
We use findModuleForHeader() in several places, but in header search we were not calling it when a framework module didn't show up with the expected name, which would then lead to unexpected non-modular includes. Now we will find the module unconditionally for frameworks. For regular frameworks, we use the spelling of the module name from the module map file, and for inferred ones we use the canonical directory name. In the future we might want to lock down framework modules sufficiently that these name mismatches cannot happen. rdar://problem/20465870 llvm-svn: 241258
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud