diff options
| author | Martin Probst <martin@probst.io> | 2016-04-19 14:55:37 +0000 |
|---|---|---|
| committer | Martin Probst <martin@probst.io> | 2016-04-19 14:55:37 +0000 |
| commit | 053f1aa6d09df250ef27b992974b06bbad637557 (patch) | |
| tree | 0d382a67f01cb33a395af6d7a9f3bf6bb67862c3 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 0b0271ef976cec3ee6a1ab2d654e42cf111a68bd (diff) | |
| download | llvm-053f1aa6d09df250ef27b992974b06bbad637557.zip llvm-053f1aa6d09df250ef27b992974b06bbad637557.tar.gz llvm-053f1aa6d09df250ef27b992974b06bbad637557.tar.bz2 | |
clang-format: [JS] simplify import/export.
Summary:
Change `import` and `export` parsing to special case the renaming
syntax (`import x, {y as bar} ...`, `export {x}`) and otherwise just
parse a regular structural element.
This simplifies the code a bit and should be more correct - it's easier
to recognise the specific import syntax than to recognise arbitrary
expressions and declarations.
Reviewers: djasper
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D19242
llvm-svn: 266743
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
