This is an archive of the discontinued LLVM Phabricator instance.

[Tooling] Handle #pragma once header guard in include insertion.
ClosedPublic

Authored by ioeric on Jan 25 2019, 2:51 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Jan 25 2019, 2:51 AM
ilya-biryukov accepted this revision.Jan 28 2019, 1:25 PM

LGTM

lib/Tooling/Inclusions/HeaderIncludes.cpp
77 ↗(On Diff #183505)

typo NITs:
s/header guards presents/header guard is present
s/will returns/will return

84 ↗(On Diff #183505)

This function is getting really complex after this change. The comments help, but still.
I don't have a good recipe to improve it, though, especially without changing the whole file, so happy to keep as is.

This revision is now accepted and ready to land.Jan 28 2019, 1:25 PM
ioeric updated this revision to Diff 184076.Jan 29 2019, 6:39 AM
ioeric marked an inline comment as done.
  • fix typo
This revision was automatically updated to reflect the committed changes.