[PATCH] D144878: __builtin_FILE_NAME()

Ilya Karapsin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 08:00:18 PST 2023


karapsinie created this revision.
karapsinie added reviewers: klimek, aaron.ballman.
Herald added subscribers: luke, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a reviewer: shafik.
Herald added a project: All.
karapsinie requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, pcwang-thead, MaskRay.
Herald added projects: clang, LLVM.

My commit adds "__builtin_FILE_NAME()" to clang, which insert only the filename because the full path is not always needed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144878

Files:
  clang/include/clang/AST/Expr.h
  clang/include/clang/Basic/TokenKinds.def
  clang/lib/AST/Expr.cpp
  clang/lib/Parse/ParseExpr.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/Preprocessor/feature_tests.c
  clang/test/Preprocessor/feature_tests.cpp
  clang/test/Sema/source_location.c
  clang/test/SemaCXX/Inputs/source-location-file.h
  clang/test/SemaCXX/source_location.cpp
  clang/unittests/AST/ASTImporterTest.cpp
  llvm/utils/gn/secondary/llvm/lib/Target/RISCV/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144878.500789.patch
Type: text/x-patch
Size: 17020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230227/440ad62b/attachment.bin>


More information about the llvm-commits mailing list