CastXML / pygccxml

pygccxml is a specialized XML reader that reads the output from CastXML or GCCXML. It provides a simple framework to navigate C++ declarations, using Python classes.
Boost Software License 1.0
129 stars 44 forks source link

Handle default flags #141

Closed tao558 closed 3 years ago

tao558 commented 3 years ago

Allow users to pass predefined macros to the simulated compiler (e.g. -fopenmp). By default, these are removed by castxml. Currently only supported on mac and linux.

codecov-commenter commented 3 years ago

Codecov Report

Merging #141 (a70e942) into develop (aa5920c) will decrease coverage by 0.03%. The diff coverage is 92.68%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #141      +/-   ##
===========================================
- Coverage    91.72%   91.69%   -0.04%     
===========================================
  Files          137      138       +1     
  Lines        10671    10712      +41     
===========================================
+ Hits          9788     9822      +34     
- Misses         883      890       +7     
Flag Coverage Δ
unittests 91.69% <92.68%> (-0.04%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pygccxml/parser/config.py 89.82% <72.72%> (-0.88%) :arrow_down:
pygccxml/parser/source_reader.py 85.64% <100.00%> (+0.21%) :arrow_up:
unittests/test_all.py 100.00% <100.00%> (ø)
unittests/test_ccflags.py 100.00% <100.00%> (ø)
pygccxml/parser/project_reader.py 80.00% <0.00%> (-1.06%) :arrow_down:
pygccxml/declarations/cpptypes.py 94.72% <0.00%> (-0.23%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aa5920c...a70e942. Read the comment docs.

josephsnyder commented 3 years ago

The flags pass without issue now. Thanks for the fix, @tao558. LGTM!