[PATCH] D120333: [NFC][Lexer] Make access to LangOpts more consistent

Dawid Jurczak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 22 08:34:37 PST 2022


yurai007 created this revision.
yurai007 added reviewers: nikic, xbolva00, serge-sans-paille, ymandel, jansvoboda11, cor3ntin.
yurai007 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Before this change without any good reason Lexer::LangOpts is sometimes accessed by getter and another time read directly in Lexer functions.
Since getLangOpts is a bit more verbose prefer direct access to LangOpts member when possible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120333

Files:
  clang/lib/Lex/Lexer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120333.410540.patch
Type: text/x-patch
Size: 6046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220222/d79e365a/attachment.bin>


More information about the cfe-commits mailing list