mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 21:27:54 +00:00
parent
ae55e7f5ab
commit
33d2a53e12
15
.github/workflows/test_linux.yml
vendored
15
.github/workflows/test_linux.yml
vendored
@ -95,7 +95,7 @@ jobs:
|
||||
#-------- RHEL 7-based Only Dependencies ----------------
|
||||
- cfg: { arch: rhel, arch_ver: 7 }
|
||||
pkg_mgr: yum
|
||||
conf_pkg: |
|
||||
conf_pkg: |
|
||||
yum -y install epel-release
|
||||
yum -y update
|
||||
os_deps: >-
|
||||
@ -124,23 +124,12 @@ jobs:
|
||||
cmake .
|
||||
make
|
||||
cp libgtest* /usr/lib/
|
||||
tag_deps: >-
|
||||
llvm-dev
|
||||
libclang-dev
|
||||
#-------- Debian 11-based Only Dependencies ----------------
|
||||
- cfg: { arch: debian, arch_ver: 11 }
|
||||
conf_pkg: |
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -y tzdata
|
||||
tag_deps: >-
|
||||
llvm-dev
|
||||
libclang-dev
|
||||
#-------- Debian 12-based Only Dependencies ----------------
|
||||
- cfg: { arch: debian, arch_ver: 12 }
|
||||
tag_deps: >-
|
||||
llvm-13-dev
|
||||
libclang-13-dev
|
||||
#-------- OS and Version Specific Dependencies ----------------
|
||||
- cfg: { os: oraclelinux }
|
||||
install_gtest: |
|
||||
@ -170,7 +159,7 @@ jobs:
|
||||
export PYTHON_VERSION=${{matrix.python}}
|
||||
./configure
|
||||
- name: Build Trick
|
||||
run: |
|
||||
run: |
|
||||
export MAKEFLAGS=-j`nproc`
|
||||
make
|
||||
- name: Test
|
||||
|
@ -79,7 +79,13 @@ bool CXXRecordVisitor::TraverseDecl(clang::Decl *d) {
|
||||
/* This is an embedded enumeration within a class. Only process it if is public */
|
||||
if ( ed->getAccess() == clang::AS_public ) {
|
||||
EnumVisitor evis(ci, hsd) ;
|
||||
// Before llvm 14, TraverseDecl also traversed the type.
|
||||
// llvm believed this to be a bug, so now we call TraverseType
|
||||
// in addition to TraverseDecl.
|
||||
evis.TraverseDecl(ed) ;
|
||||
#if (LIBCLANG_MAJOR >= 14)
|
||||
evis.TraverseType(clang::QualType(ed->getTypeForDecl(), 0));
|
||||
#endif
|
||||
pa.printEnum(evis.get_enum_data()) ;
|
||||
} else {
|
||||
// protected and private embedded classes cannot be used outside of their class
|
||||
|
@ -98,7 +98,13 @@ bool TranslationUnitVisitor::TraverseDecl(clang::Decl *d) {
|
||||
clang::EnumDecl * ed = static_cast<clang::EnumDecl *>(d) ;
|
||||
if ( isInUserCode(ci , ed->RBRACELOC(), hsd) ) {
|
||||
EnumVisitor evis(ci, hsd) ;
|
||||
// Before llvm 14, TraverseDecl also traversed the type.
|
||||
// llvm believed this to be a bug, so now we call TraverseType
|
||||
// in addition to TraverseDecl.
|
||||
evis.TraverseDecl(ed) ;
|
||||
#if (LIBCLANG_MAJOR >= 14)
|
||||
evis.TraverseType(clang::QualType(ed->getTypeForDecl(), 0));
|
||||
#endif
|
||||
//if ( evis.get_enum_data() != NULL ) {
|
||||
pa.printEnum(evis.get_enum_data()) ;
|
||||
//}
|
||||
|
Loading…
Reference in New Issue
Block a user