This is an archive of the discontinued LLVM Phabricator instance.

[include-fixer] Add mising qualifiers to all instances of an unidentified symbol.
ClosedPublic

Authored by hokein on Jul 20 2016, 6:24 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 64677.Jul 20 2016, 6:24 AM
hokein retitled this revision from to [include-fixer] Add mising qualifiers to all instances of an unidentified symbol..
hokein updated this object.
hokein added a reviewer: bkramer.
hokein added a subscriber: cfe-commits.
ioeric added a subscriber: ioeric.Jul 20 2016, 6:32 AM
ioeric added inline comments.
include-fixer/tool/ClangIncludeFixer.cpp
365 ↗(On Diff #64677)

Now that we insert namespace qualifiers, we might want to do a formatReplacements before applying them.

bkramer added inline comments.Jul 20 2016, 6:51 AM
include-fixer/IncludeFixer.cpp
246 ↗(On Diff #64677)

Drop .str() when comparing StringRef with std::string.

include-fixer/IncludeFixerContext.h
73 ↗(On Diff #64677)

This comment is rather useless as-is, maybe explain what it means to have multiple elements in the vector.

hokein updated this revision to Diff 64848.Jul 21 2016, 3:09 AM
hokein marked 3 inline comments as done.

Address review comments.

include-fixer/tool/ClangIncludeFixer.cpp
365 ↗(On Diff #64677)

Good point! So that we won't break the current code style. The line probably exceeds 80 characters after adding qualifiers.

hokein updated this revision to Diff 64849.Jul 21 2016, 3:13 AM

update error message.

bkramer accepted this revision.Jul 21 2016, 3:24 AM
bkramer edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jul 21 2016, 3:24 AM
This revision was automatically updated to reflect the committed changes.