|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| INPUTS/ | | 03-May-2024 | - | 1,013 | 915 |
| bindings/ | | 03-May-2024 | - | 6,450 | 4,659 |
| cmake/ | | 03-May-2024 | - | 464 | 378 |
| docs/ | | 03-May-2024 | - | 33,982 | 25,746 |
| examples/ | | 03-May-2024 | - | 564 | 400 |
| include/ | | 03-May-2024 | - | 203,936 | 120,727 |
| lib/ | | 03-May-2024 | - | 773,169 | 552,172 |
| runtime/ | | 03-May-2024 | - | 154 | 132 |
| soong/ | | 03-May-2024 | - | 247 | 184 |
| test/ | | 03-May-2024 | - | 895,680 | 512,974 |
| tools/ | | 03-May-2024 | - | 41,894 | 32,029 |
| unittests/ | | 03-May-2024 | - | 39,457 | 33,011 |
| utils/ | | 03-May-2024 | - | 15,984 | 12,202 |
| www/ | | 03-May-2024 | - | 26,148 | 23,890 |
| .arcconfig | D | 03-May-2024 | 76 | 5 | 4 |
| .clang-format | D | 03-May-2024 | 19 | 2 | 1 |
| .clang-tidy | D | 03-May-2024 | 579 | 13 | 12 |
| .gitignore | D | 03-May-2024 | 1.4 KiB | 38 | 34 |
| Android.bp | D | 03-May-2024 | 6 KiB | 258 | 229 |
| Android.mk | D | 03-May-2024 | 1.9 KiB | 98 | 86 |
| CMakeLists.txt | D | 03-May-2024 | 22.2 KiB | 648 | 548 |
| CODE_OWNERS.TXT | D | 03-May-2024 | 1.4 KiB | 59 | 45 |
| INSTALL.txt | D | 03-May-2024 | 2.1 KiB | 49 | 35 |
| LICENSE.TXT | D | 03-May-2024 | 2.7 KiB | 64 | 48 |
| MODULE_LICENSE_BSD_LIKE | D | 03-May-2024 | 0 | | |
| ModuleInfo.txt | D | 03-May-2024 | 96 | 6 | 5 |
| NOTES.txt | D | 03-May-2024 | 4.3 KiB | 112 | 80 |
| NOTICE | D | 03-May-2024 | 2.7 KiB | 64 | 48 |
| OWNERS | D | 03-May-2024 | 178 | 7 | 6 |
| README.txt | D | 03-May-2024 | 1.2 KiB | 27 | 20 |
| README.version | D | 03-May-2024 | 132 | 5 | 4 |
| ReadmeAndroid.md | D | 03-May-2024 | 4.1 KiB | 114 | 80 |
| RenderScriptPrebuilts.md | D | 03-May-2024 | 3.5 KiB | 119 | 85 |
| ToolchainPrebuilts.md | D | 03-May-2024 | 6.4 KiB | 204 | 137 |
| build.py | D | 03-May-2024 | 25.7 KiB | 746 | 547 |
| clang-version-inc.py | D | 03-May-2024 | 693 | 28 | 20 |
| clang.mk | D | 03-May-2024 | 163 | 5 | 3 |
| compiler_wrapper | D | 03-May-2024 | 587 | 32 | 21 |
| update-prebuilts.py | D | 03-May-2024 | 5.5 KiB | 191 | 126 |
| version.py | D | 03-May-2024 | 41 | 4 | 3 |
README.txt
1//===----------------------------------------------------------------------===//
2// C Language Family Front-end
3//===----------------------------------------------------------------------===//
4
5Welcome to Clang. This is a compiler front-end for the C family of languages
6(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
7compiler infrastructure project.
8
9Unlike many other compiler frontends, Clang is useful for a number of things
10beyond just compiling code: we intend for Clang to be host to a number of
11different source-level tools. One example of this is the Clang Static Analyzer.
12
13If you're interested in more (including how to build Clang) it is best to read
14the relevant web sites. Here are some pointers:
15
16Information on Clang: http://clang.llvm.org/
17Building and using Clang: http://clang.llvm.org/get_started.html
18Clang Static Analyzer: http://clang-analyzer.llvm.org/
19Information on the LLVM project: http://llvm.org/
20
21If you have questions or comments about Clang, a great place to discuss them is
22on the Clang development mailing list:
23 http://lists.llvm.org/mailman/listinfo/cfe-dev
24
25If you find a bug in Clang, please file it in the LLVM bug tracker:
26 http://llvm.org/bugs/
27
README.version
ReadmeAndroid.md
1Android Clang/LLVM
2==================
3
4For the latest version of this doc, please make sure to visit:
5[Android Clang/LLVM Toolchain Readme Doc](https://android.googlesource.com/platform/external/clang/+/dev/ReadmeAndroid.md)
6
7Platform Projects
8-----------------
9
10The LLVM toolchain is primarily composed of the following projects:
11
12* **external/clang**
13* **external/compiler-rt**
14* **external/llvm**
15
16Each of these projects has three important branches:
17
18* *aosp/master*
19
20 This is the branch that will be present in most platform trees. As such,
21 platform components that use clang or LLVM will build against the headers and
22 libraries in this branch.
23
24 This branch does not contain a full history. Updates to this are done via a
25 squashed merge from the *dev* branch. Aside from updates, patches usually
26 shouldn't be submitted to this branch. Any that are will need to be
27 cherry-picked to *dev*.
28
29* *aosp/dev*
30
31 The primary purpose of this branch is allowing us to decouple the platform
32 compilers from RenderScript and other platform components that depend on LLVM
33 libraries. This means we can update the platform compilers even if
34 RenderScript will need substantial modification for API changes.
35
36 Updates are performed in this branch, and the platform compilers are built
37 from this branch.
38
39* *aosp/upstream-master*
40
41 This branch is an automatically updated direct mirror of the upstream master
42 branch. This is a read only branch that is the merge source for updates to
43 *dev*.
44
45
46Development Flow
47----------------
48
49Rebases take place in the **aosp/llvm** tree. This tree is a manifest that uses
50the appropriate *dev* branches of each LLVM project and contains only the
51projects needed to build the platform compilers. Updates are done by merging
52from the *aosp/upstream-master* branch.
53
54Conflicts are resolved manually and then a patch is produced to adapt
55Android.mk files (as well as to add/delete any updated source files).
56Prebuilts are then generated using these projects and placed into the proper
57**prebuilts/clang/host** subprojects.
58
59The prebuilt projects contain multiple versions to make it easy to check in a
60new compiler that may not be ready to be enabled by default. Each new toolchain
61will add the following paths:
62
63 prebuilts/clang/host/linux-x86/clang-$BUILD_NUMBER
64 prebuilts/clang/host/darwin-x86/clang-$BUILD_NUMBER
65 prebuilts/clang/host/windows-x86/clang-$BUILD_NUMBER
66
67In order to prepare for the actual rebase (including updating dependent
68projects), we will copy each **external/** *aosp/dev* project to its
69corresponding **external/** *aosp/master* project as a squashed single CL.
70This makes rollbacks simpler, and it also reduces churn on the Android build
71servers.
72This also has the side effect of not spamming non-Android @google.com
73committers to upstream LLVM projects, since their commits will be batched up
74into a single copy commit on each tracked **external/** project.
75
76Prebuilts for llvm-rs-cc and bcc\_compat also need to be generated for
77**prebuilts/sdk**.
78This is done by running **frameworks/rs/update\_rs\_prebuilts.sh** on both Mac
79and Linux. This is done from the normal AOSP platform tree rather than the LLVM
80tree.
81After this completes, the **prebuilts/sdk** project will have a prepared
82branch/CL that can be uploaded for review/commit.
83
84
85Fixing Bugs
86-----------
87
88If we find a host-side bug that needs to be fixed, it may trigger an update of
89the host prebuilts (i.e. rebase).
90Device-side fixes can be pushed directly to **external/** *aosp/master* and then
91copied to **external/** *aosp/dev* to speed up the process (assuming that it
92doesn’t affect the host builds).
93
94
95Looking at Upstream
96-------------------
97
98The upstream repositories are automatically mirrored to the
99*aosp/upstream-master* branch. Update with `git fetch aosp upstream-master`.
100
101
102Communication
103-------------
104
105We have a public mailing list that you can subscribe to:
106[android-llvm@googlegroups.com](https://groups.google.com/forum/#!forum/android-llvm)
107
108
109Guides for Updating Toolchains
110------------------------------
111
112* [Updating platform toolchains](ToolchainPrebuilts.md)
113* [Updating RenderScript prebuilts](RenderScriptPrebuilts.md)
114