This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix llvm-include-order check on Windows.
ClosedPublic

Authored by curdeius on Sep 4 2015, 7:26 AM.

Details

Reviewers
alexfh
Summary

IncludeDirectives struct used a StringRef that pointed to a stack variable (SmallString<128> FilenameBuffer from PPDirectives.cpp:1513).

Diff Detail

Event Timeline

curdeius updated this revision to Diff 34028.Sep 4 2015, 7:26 AM
curdeius retitled this revision from to [clang-tidy] Fix llvm-include-order check on Windows..
curdeius updated this object.
curdeius added a reviewer: alexfh.
curdeius set the repository for this revision to rL LLVM.
curdeius updated this object.Sep 4 2015, 7:27 AM
alexfh accepted this revision.Sep 4 2015, 8:17 AM
alexfh edited edge metadata.

I see. The interesting thing is that it actually happens only in msvc compatibility mode (PPDirectives.cpp:1754). Thank you for finding this out!

LG. I'll commit the patch for you.

This revision is now accepted and ready to land.Sep 4 2015, 8:17 AM
This comment was removed by curdeius.
alexfh closed this revision.Sep 4 2015, 8:49 AM

Committed revision 246856.