Open-CMSIS-Pack / devtools

Open-CMSIS-Pack development tools - C++
Apache License 2.0
74 stars 57 forks source link

packchk: issue warning for explicit include paths in `*.pdsc` to config files #1644

Open ReinhardKeil opened 2 months ago

ReinhardKeil commented 2 months ago

The Problem To Be Solved

Files that have attr=config in the *.pdsc are copied to the project. An include path is automatically generated.

It is a potential risk to add an additional include path to original location in the *.pdsc file. This file does not contain configuration settings. It depends on the search order of the compiler to pickup the right header file (as effectively the same header file name is twice in the search path).

Suggest A Solution packchk should flag explicit include paths in *.pdsc to config files with a warning.