bloomberg / clangmetatool

A framework for reusing code in Clang tools
https://bloomberg.github.io/clangmetatool/
Apache License 2.0
119 stars 25 forks source link

Use isInMainFile instead of isWrittenInMainFile in example #68

Open dbeer1 opened 2 years ago

dbeer1 commented 2 years ago

Describe your changes The example code should use isInMainFile instead of isWrittenInMainFile. The former correctly checks if a location is in a file and handles things like #line directives and macros.

Testing performed Build and test