[all-commits] [llvm/llvm-project] 17c9fc: [clang][lex] Use `ConstSearchDirIterator` in looku...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Tue Feb 15 02:04:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17c9fcd6f6fc0926c1096242a2ddced9b523decd
      https://github.com/llvm/llvm-project/commit/17c9fcd6f6fc0926c1096242a2ddced9b523decd
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M clang/include/clang/Lex/HeaderSearch.h
    M clang/lib/Lex/HeaderSearch.cpp

  Log Message:
  -----------
  [clang][lex] Use `ConstSearchDirIterator` in lookup cache

This patch starts using the new iterator type in `LookupFileCacheInfo`.

Depends on D117566.

Reviewed By: ahoppen

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


  Commit: e7dcf09fc321010fb012afd270afdef20378dee7
      https://github.com/llvm/llvm-project/commit/e7dcf09fc321010fb012afd270afdef20378dee7
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M clang/include/clang/Lex/HeaderSearch.h
    M clang/lib/Lex/HeaderSearch.cpp

  Log Message:
  -----------
  [clang][lex] Use `SearchDirIterator` types in for loops

This patch replaces a lot of index-based loops with iterators and ranges.

Depends on D117566.

Reviewed By: ahoppen

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


Compare: https://github.com/llvm/llvm-project/compare/7631c366c858...e7dcf09fc321


More information about the All-commits mailing list