mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Swift: make C++ code generation language agnostic
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import pathlib
|
||||
import re
|
||||
from dataclasses import dataclass, field
|
||||
from typing import List, ClassVar
|
||||
@@ -110,6 +111,8 @@ class TrapList:
|
||||
extensions = ["h", "cpp"]
|
||||
traps: List[Trap]
|
||||
source: str
|
||||
trap_library_dir: pathlib.Path
|
||||
gen_dir: pathlib.Path
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -156,4 +159,5 @@ class ClassList:
|
||||
|
||||
classes: List[Class]
|
||||
source: str
|
||||
trap_library: str
|
||||
include_parent: bool = False
|
||||
|
||||
Reference in New Issue
Block a user