Skip to content

fix: support base components in offsetof expressions - #243

Open
lm-sousa wants to merge 7 commits into
dumper-polish-template-namesfrom
dumper-polish-offsetof-base
Open

fix: support base components in offsetof expressions#243
lm-sousa wants to merge 7 commits into
dumper-polish-template-namesfrom
dumper-polish-offsetof-base

Conversation

@lm-sousa

Copy link
Copy Markdown
Member

The future clang-dumper emits Base components for offsetof expressions, but Clava currently rejects that component kind.

This adds an OffsetOfBase model and parses its serialized base type so nested-base member paths remain available to Clava.

Verification:

  • gradle -p ClangAstParser compileJava
  • git diff --check

Model: GPT-5.6-Luna

Copilot AI lite review requested due to automatic review settings August 28, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b3a7cd9d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ClavaAst/src/pt/up/fe/specs/clava/ast/expr/data/offsetof/OffsetOfBase.java Outdated
@lm-sousa
lm-sousa force-pushed the dumper-polish-offsetof-base branch from 6b3a7cd to 6d3e2f7 Compare August 28, 2026 19:28
@lm-sousa
lm-sousa force-pushed the dumper-polish-offsetof-base branch 2 times, most recently from 660ff17 to 9f3fd8b Compare September 3, 2026 04:24
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@lm-sousa
lm-sousa force-pushed the dumper-polish-offsetof-base branch from 884518e to f1e6066 Compare September 5, 2026 23:37
Read platform checks and manifest consumers through a stable cached
manifest file (cuda/redistrib_<release>.json) installed with
CacheFiles.installFile, mirroring ClangAstWebResource.getManifest, so
repeated isBuiltinCudaSupported-style calls do not re-download the
manifest. The staging-based manifest download remains for release
installation only.

Tests: CudaResourcesTest (17), ClangResourcesTest (27)
SYSTEM mode with built-in CUDA requires a matching system Clang resource
directory for Clang's CUDA wrapper headers. Extend the failure message
with the expected Clang command, install hints, and the 'builtin' libc
mode alternative so users can self-serve. The command and version in the
message are derived from the dumper's LLVM major at runtime; the
'apt install clang++-18' wording users actually see is just an example of
the rendered output.

Tests: CudaResourcesTest (17), ClangResourcesTest (27)
@sonarqubecloud

sonarqubecloud Bot commented Sep 6, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants