Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
clang/ast: DllImportAttr UnusedAttr for clang-mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Nov 17, 2022
1 parent bb55fe2 commit 7ac949d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cl/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ func compileFunc(ctx *blockCtx, fn *ast.Node) {
case ast.BuiltinAttr, ast.FormatAttr, ast.AsmLabelAttr, ast.AvailabilityAttr, ast.ColdAttr, ast.DeprecatedAttr,
ast.AlwaysInlineAttr, ast.WarnUnusedResultAttr, ast.NoThrowAttr, ast.NoInlineAttr, ast.AllocSizeAttr,
ast.NonNullAttr, ast.ConstAttr, ast.PureAttr, ast.GNUInlineAttr, ast.ReturnsTwiceAttr, ast.NoSanitizeAttr,
ast.RestrictAttr, ast.MSAllocatorAttr, ast.VisibilityAttr, ast.C11NoReturnAttr, ast.StrictFPAttr:
ast.RestrictAttr, ast.MSAllocatorAttr, ast.VisibilityAttr, ast.C11NoReturnAttr, ast.StrictFPAttr,
ast.DLLImportAttr, ast.UnusedAttr:
default:
log.Panicln("compileFunc: unknown kind =", item.Kind)
}
Expand Down
2 changes: 2 additions & 0 deletions clang/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ const (
StringLiteral Kind = "StringLiteral"
FloatingLiteral Kind = "FloatingLiteral"
ImaginaryLiteral Kind = "ImaginaryLiteral"
DLLImportAttr Kind = "DLLImportAttr"
UnusedAttr Kind = "UnusedAttr"
)

type ValueCategory string
Expand Down

0 comments on commit 7ac949d

Please sign in to comment.