[all-commits] [llvm/llvm-project] 7dc3c6: [pseudo] Strip directives from a token stream

Sam McCall via All-commits all-commits at lists.llvm.org
Fri May 6 03:15:23 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dc3c6190ec7191dd104fa5158fe0ee32e9b0c49
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-05-06 (Fri, 06 May 2022)

  Changed paths:
    M clang-tools-extra/pseudo/include/clang-pseudo/DirectiveTree.h
    M clang-tools-extra/pseudo/lib/DirectiveTree.cpp
    M clang-tools-extra/pseudo/test/lex.c
    A clang-tools-extra/pseudo/test/strip-directives.c
    M clang-tools-extra/pseudo/tool/ClangPseudo.cpp
    M clang-tools-extra/pseudo/unittests/DirectiveTreeTest.cpp

  Log Message:
  [pseudo] Strip directives from a token stream

This includes only the taken branch of conditional sections.
The API allows for producing a stream for a particular PP branch, which
will be used later for the secondary GLR parses of not-taken branches.

Differential Revision: https://reviews.llvm.org/D123243

More information about the All-commits mailing list