PPCallbacks.cpp 1.2 KB

1234567891011121314151617181920212223242526272829
  1. //===--- PPCallbacks.cpp - Callbacks for Preprocessor actions ---*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #include "clang/Lex/PPCallbacks.h"
  9. #include "clang/Basic/FileManager.h"
  10. using namespace clang;
  11. // Out of line key method.
  12. PPCallbacks::~PPCallbacks() = default;
  13. void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
  14. bool IsAngled, OptionalFileEntryRef File,
  15. SrcMgr::CharacteristicKind FileType) {}
  16. // Out of line key method.
  17. PPChainedCallbacks::~PPChainedCallbacks() = default;
  18. void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
  19. bool IsAngled, OptionalFileEntryRef File,
  20. SrcMgr::CharacteristicKind FileType) {
  21. First->HasInclude(Loc, FileName, IsAngled, File, FileType);
  22. Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
  23. }