• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===--- Path.h - Helper typedefs --------------------------------*- 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 
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SUPPORT_PATH_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SUPPORT_PATH_H
11 
12 #include "llvm/ADT/StringRef.h"
13 #include <string>
14 
15 namespace clang {
16 namespace clangd {
17 
18 /// A typedef to represent a file path. Used solely for more descriptive
19 /// signatures.
20 using Path = std::string;
21 /// A typedef to represent a ref to file path. Used solely for more descriptive
22 /// signatures.
23 using PathRef = llvm::StringRef;
24 
25 } // namespace clangd
26 } // namespace clang
27 
28 #endif
29