[PATCH] D120857: WIP [randstruct] Create basis for unit test module

Bill Wendling via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 2 17:23:20 PST 2022


void created this revision.
Herald added subscribers: dang, jdoerfert, mgorny.
Herald added a reviewer: aaron.ballman.
Herald added a project: All.
void requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Build the unit tests with (in the build directory):

  $ make ASTTests

Run the unit tests with (in the build directory):

  $ ./tools/clang/unittests/AST/ASTTests --gtest_filter=StructureLayoutRandomization*

This initial commit outlines the specification for Clang Randstruct.
Unit tests must exercise each path of a new chunk of code for
Randstruct. Among these unit tests are also special cases outlined in
the RFC feedback on Phabricator: https://reviews.llvm.org/D59254#1429401


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120857

Files:
  clang/include/clang/AST/Decl.h
  clang/include/clang/AST/DeclBase.h
  clang/include/clang/AST/Randstruct.h
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/include/clang/Basic/DiagnosticASTKinds.td
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Driver/Options.td
  clang/lib/AST/CMakeLists.txt
  clang/lib/AST/Decl.cpp
  clang/lib/AST/DeclBase.cpp
  clang/lib/AST/Randstruct.cpp
  clang/lib/AST/RecordLayoutBuilder.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Sema/AnalysisBasedWarnings.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/unittests/AST/CMakeLists.txt
  clang/unittests/AST/RandstructTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120857.412577.patch
Type: text/x-patch
Size: 40392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220303/b5ef45b3/attachment-0001.bin>


More information about the cfe-commits mailing list