Skip to content

Commit

Permalink
Keep real paths for macros
Browse files Browse the repository at this point in the history
  • Loading branch information
17451k committed Aug 26, 2019
1 parent 7ede2f9 commit 1e212b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcpp/ldv-cpp-pointcut-matcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ ldv_match_macro (cpp_reader *pfile, cpp_hashnode *node, const cpp_token ***arg_v

/* Obtain macro location in the same way for definitions and expansions. */
xloc = richloc.get_expanded_location(0);
macro->file_path = xloc.file;
macro->file_path = ldv_get_realpath (xloc.file);
macro->line = xloc.line;

/* Given token location corresponds to expansion location. */
Expand Down

0 comments on commit 1e212b4

Please sign in to comment.