[all-commits] [llvm/llvm-project] fbe38a: [NFC][Lexer] Make access to LangOpts more consistent

yurai007 via All-commits all-commits at lists.llvm.org
Wed Feb 23 03:46:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbe38a784e2852b22f5a44ad417e071ff583d57d
      https://github.com/llvm/llvm-project/commit/fbe38a784e2852b22f5a44ad417e071ff583d57d
  Author: Dawid Jurczak <dawid_jurek at vp.pl>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M clang/lib/Lex/Lexer.cpp

  Log Message:
  -----------
  [NFC][Lexer] Make access to LangOpts more consistent

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.

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




More information about the All-commits mailing list