13 Commits
Author SHA1 Message Date
Felipe Torrezan a17cbbee93 IAR: Add post-processing step in C-STAT outputs
Harmonize IAR C-STAT headers between the first-time analysis
and subsequent builds, which uses cached results.

It also removes spurious relative paths such as `"../` and
`..\` that might appear after a new line followed by a double quote.
Effectively this will display paths relative to CMAKE_SOURCE_DIR,
similarly to the IDE, which display paths relative to $PROJ_DIR$.

Update the IAR tests to match the new C-STAT outputs.
2026-08-26 23:10:43 +02:00
15daksh-2003 1470d96c44 IAR: Pass source file to C-STAT co-compile analysis
The <LANG>_ICSTAT co-compile appended --source= only when another
linter (tidy/cpplint/cppcheck/pvs) was also active, so a C-STAT-only
target ran `icstat analyze "" -- ...` with an empty file argument.
Add icstat to the --source= condition so C-STAT gets the real path.

Fixes: #28045
2026-08-21 00:55:59 +05:30
Brad King 87d95b2222 ASM: Restore CMAKE_ASM_COMPILER_ARCHITECTURE_ID persistence
Refactoring in commit 019f0f8b32 (ARCHITECTURE_ID: Save persistently
even if empty, 2025-03-13, v4.1.0-rc1~499^2~1) accidentally dropped
part of the variable name in `CMakeASMCompiler.cmake`.

Reported-by: Felipe Torrezan <felipe.torrezan@iar.com>
2025-09-08 10:38:30 -04:00
Felipe Torrezan c7d2a17253 IAR: Add support for C-STAT static analysis
The IAR platform offers an integrated static analysis tool named
IAR C-STAT.

Closes: #26844
2025-04-09 12:01:02 -04:00
Felipe Torrezan 654c357a05 Tests/RunCMake/IAR: Fix ASM cases for XLINK targets
The IAR Assemblers seem to be missing some built-in target-identifier
symbols.  Instead, identify the affected target architectures by using
their respective `__TID__` (Target Identifier) built-in symbols.  Also
make sure the test has an IAR Assembly implementation for each target.

Fixes: #26267
2024-09-06 11:25:13 -04:00
Brad King 52098b5b51 Tests/RunCMake/IAR: Exclude ASM cases on Windows pending investigation
Issue: #26267
2024-09-05 10:10:35 -04:00
Brad King aad2a88cb4 Tests/RunCMake/IAR: Quote linker flags for spaces in path to toolkit 2024-09-05 09:36:28 -04:00
Felipe Torrezan d478ffcd72 Tests/RunCMake/IAR: Add missing linker options for RH850
Closes: #26249
2024-09-03 10:25:55 -04:00
Brad King a772c2c384 Tests/RunCMake/IAR: Extend tests to actually build
Extend the tests from commit 37e44707bc (IAR: Add tests covering IAR
toolchains, 2023-10-21) to actually drive the generated build system.
2024-02-12 14:42:54 -05:00
Felipe Torrezan 9f52953df5 Tests/RunCMake/IAR: Enable IAR extended keywords 2024-02-12 14:07:08 -05:00
Felipe Torrezan cc268d58e2 Tests/RunCMake/IAR: Update architecture-specific link flags 2024-02-12 14:07:07 -05:00
Brad King bcddea5041 Tests/RunCMake/IAR: Simplify test project cmake code 2024-02-12 14:07:07 -05:00
Felipe Torrezan 37e44707bc IAR: Add tests covering IAR toolchains
Run the tests only if enabled explicitly by an undocumented cache
entry.  We will enable it on hosts known to have the toolchains.
2023-10-23 15:59:40 -04:00