aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/python-wrapper.swig
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-13 21:10:08 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-13 21:10:08 +0000
commit2ce63b4246329ee0fb20aa6f768f1f57eda6d5f0 (patch)
tree4be210b1e56cdc21224b46cb709dbf767159f538 /lldb/scripts/Python/python-wrapper.swig
parent2f88006cedd06b8e2be1e9d282ba7e3bf88f57ca (diff)
downloadllvm-2ce63b4246329ee0fb20aa6f768f1f57eda6d5f0.zip
llvm-2ce63b4246329ee0fb20aa6f768f1f57eda6d5f0.tar.gz
llvm-2ce63b4246329ee0fb20aa6f768f1f57eda6d5f0.tar.bz2
Diagnose likely typos in #include directives.
Summary: When someone writes #include "<some_file>" or #include " some_file " the compiler returns "file not fuond..." with fonts and quotes that may make it hard to see there are excess quotes or surprising bytes in the filename. Assuming that files are usually logically named and start and end with an alphanumeric character, we can check for the file's existence by stripping the non-alphanumeric leading or trailing characters. If the file is found, emit a non-fatal error with a FixItHint. Patch by Christy Lee! Reviewers: aaron.ballman, erikjv, rsmith Reviewed By: rsmith Subscribers: lebedev.ri, xbolva00, sammccall, modocache, erikjv, aaron.ballman, cfe-commits Differential Revision: https://reviews.llvm.org/D51333 llvm-svn: 342177
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
0 files changed, 0 insertions, 0 deletions