forked from iains/gcc-14-branch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4/7] Preprocessor location-kind predicates
https://gcc.gnu.org/ml/gcc-patches/2018-10/msg02040.html * include/line-map.h (IS_ORDINARY_LOC, IS_MACRO_LOC): New predicates. (IS_ADHOC_LOC): Move earlier. (MAP_ORDINARY_P): Use IS_ORDINARY_LOC. * line-map.c (linemap_location_from_macro_expansion_p): Use IS_MACRO_LOC. From-SVN: r265689
- Loading branch information
Showing
3 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
2018-10-31 Nathan Sidwell <[email protected]> | ||
|
||
* include/line-map.h (IS_ORDINARY_LOC, IS_MACRO_LOC): New | ||
predicates. | ||
(IS_ADHOC_LOC): Move earlier. | ||
(MAP_ORDINARY_P): Use IS_ORDINARY_LOC. | ||
* line-map.c (linemap_location_from_macro_expansion_p): Use | ||
IS_MACRO_LOC. | ||
|
||
* include/cpplib.h (cpp_macro_definition_location): Make inline. | ||
* macro.c (warn_of_redefinition): Fix comments, examine macro | ||
type, use C++ for. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters