Commit Graph

6 Commits

Author SHA1 Message Date
Kim Grasman e58967a2ec Make header guards consistent
- Remove DEVTOOLS_MAINTENANCE_ from header guards, that was a
  now-unnecessary Googleism

- Fix header guard to match filename in all production code

- Fix header guard to match path in all tests
2016-05-25 22:17:31 +02:00
Kim Gräsman 837e94beb4 Fix license header for iwyu_driver.cc. 2013-08-04 08:57:25 +00:00
csilvers+iwyu ed381497a3 Add a test to protect against syntax errors in main(). Also
test some main()-invariant logic while I'm at it.

DELTA=19  (16 added, 0 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=1409
2011-04-13 03:11:35 +00:00
csilvers+iwyu 37c67ac363 I was not correctly getting the location for member-exprs. I
thought I was saying the location is where the . (or ->) is,
which is what I want, but clang doesn't actually expose that.
So I have go through some hoops to try to figure it out.

We were actually seeing a problem with this when running:

blaze build --host_cpu=k8 --compile_only -k --crosstool_top=//third_party/llvm/crosstool --plugin=//devtools/maintenance/include_what_you_use:run_iwyu //gws/plugins/local/src:enhanced_listing_ad

It has 'msg_->MSG_foo' in it, where MSG_foo is a macro.  We
were attributing this use to the file defining MSG_foo, rather
than to us.  With this change, we properly attribute it to us.

R=dsturtevant
DELTA=150  (125 added, 6 deleted, 19 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=1347
2011-04-12 05:00:17 +00:00
csilvers+iwyu 83c3d667fa Put the driver routine in the iwyu namespace, at wan's
suggestion.

R=wan
DELTA=12  (7 added, 3 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=1073
2011-03-26 22:15:12 +00:00
csilvers+iwyu 0d6022a68b Move the driver-startup code to iwyu_driver.cc. This
makes iwyu.cc cleaner.

For now, we use it only for iwyu_tests.cc, which needs
InitGlobal() to be called, which needs a CompilerInstance.

DELTA=516  (285 added, 210 deleted, 21 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=919
2011-03-18 07:00:23 +00:00