-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Problem
The CI is failing due to clang-tidy include-what-you-use violations where system headers are being used without being explicitly included. This issue has been observed with multiple system headers, not just <type_traits>
.
Current Observations
- PR feat(tdl): Add support for tracking the source location in AST nodes. #199 required adding
#include <string_view>
tosrc/spider/tdl/parser/ast/utils.hpp
(Line 6) - Previous issues have been seen with
<type_traits>
and other system headers
Hypothesis
The root cause might be that when a system header is imported through another system header (transitive inclusion), clang-tidy's include-what-you-use check might not require the former to be explicitly included. However, this behavior may be inconsistent or dependent on specific configurations.
Required Work
- Investigate the scope: Conduct a comprehensive audit of all files to identify similar violations across the codebase
- Test the hypothesis: Experiment with different system headers to verify if transitive inclusion affects clang-tidy's requirements
- Fix violations: Add explicit includes for all system headers that are being used directly
- Document findings: Update coding guidelines if patterns are discovered
Related
- PR feat(tdl): Add support for tracking the source location in AST nodes. #199: feat(tdl): Add support for tracking the source location in AST nodes. #199
- Comment: feat(tdl): Add support for tracking the source location in AST nodes. #199 (comment)
Assignee
Metadata
Metadata
Assignees
Labels
No labels