annotate clang-tools-extra/modularize/Modularize.h @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900 (2023-10-14)
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //===--- Modularize.h - Common definitions for Modularize -*- C++ -*-----===//
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===--------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8 ///
anatofuz
parents:
diff changeset
9 /// \file
anatofuz
parents:
diff changeset
10 /// Common definitions for Modularize.
anatofuz
parents:
diff changeset
11 ///
anatofuz
parents:
diff changeset
12 //===--------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 #ifndef MODULARIZE_H
anatofuz
parents:
diff changeset
15 #define MODULARIZE_H
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 #include "llvm/ADT/ArrayRef.h"
anatofuz
parents:
diff changeset
18 #include "llvm/ADT/SmallString.h"
anatofuz
parents:
diff changeset
19 #include "llvm/ADT/SmallVector.h"
anatofuz
parents:
diff changeset
20 #include "llvm/ADT/StringMap.h"
anatofuz
parents:
diff changeset
21 #include "llvm/ADT/StringRef.h"
anatofuz
parents:
diff changeset
22 #include <string>
anatofuz
parents:
diff changeset
23 #include <vector>
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // Save the program name for error messages.
anatofuz
parents:
diff changeset
26 extern const char *Argv0;
anatofuz
parents:
diff changeset
27 // Save the command line for comments.
anatofuz
parents:
diff changeset
28 extern std::string CommandLine;
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 // Dependency types.
anatofuz
parents:
diff changeset
31 typedef llvm::SmallVector<std::string, 4> DependentsVector;
anatofuz
parents:
diff changeset
32 typedef llvm::StringMap<DependentsVector> DependencyMap;
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 // Global function declarations.
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 /// Create the module map file.
anatofuz
parents:
diff changeset
37 /// \param ModuleMapPath The path to the module map file to be generated.
anatofuz
parents:
diff changeset
38 /// \param HeaderFileNames The list of header files, absolute native paths.
anatofuz
parents:
diff changeset
39 /// \param ProblemFileNames The list of problem header files.
anatofuz
parents:
diff changeset
40 /// \param Dependencies Map of headers that depend on other headers.
anatofuz
parents:
diff changeset
41 /// \param HeaderPrefix Tells the code where the headers are, if they
anatofuz
parents:
diff changeset
42 /// aren's in the current directory, allowing the generator to strip
anatofuz
parents:
diff changeset
43 /// the leading, non-relative beginning of the header paths.
anatofuz
parents:
diff changeset
44 /// RootModuleName If not empty, specifies that a root module
anatofuz
parents:
diff changeset
45 /// should be created with this name.
anatofuz
parents:
diff changeset
46 /// \returns True if successful.
anatofuz
parents:
diff changeset
47 bool createModuleMap(llvm::StringRef ModuleMapPath,
anatofuz
parents:
diff changeset
48 llvm::ArrayRef<std::string> HeaderFileNames,
anatofuz
parents:
diff changeset
49 llvm::ArrayRef<std::string> ProblemFileNames,
anatofuz
parents:
diff changeset
50 DependencyMap &Dependencies, llvm::StringRef HeaderPrefix,
anatofuz
parents:
diff changeset
51 llvm::StringRef RootModuleName);
anatofuz
parents:
diff changeset
52
anatofuz
parents:
diff changeset
53 #endif // MODULARIZE_H