summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/assembler-with-cpp.c
AgeCommit message (Collapse)Author
2023-08-28[clang] Remove rdar links; NFCAaron Ballman
We have a new policy in place making links to private resources something we try to avoid in source and test files. Normally, we'd organically switch to the new policy rather than make a sweeping change across a project. However, Clang is in a somewhat special circumstance currently: recently, I've had several new contributors run into rdar links around test code which their patch was changing the behavior of. This turns out to be a surprisingly bad experience, especially for newer folks, for a handful of reasons: not understanding what the link is and feeling intimidated by it, wondering whether their changes are actually breaking something important to a downstream in some way, having to hunt down strangers not involved with the patch to impose on them for help, accidental pressure from asking for potentially private IP to be made public, etc. Because folks run into these links entirely by chance (through fixing bugs or working on new features), there's not really a set of problematic links to focus on -- all of the links have basically the same potential for causing these problems. As a result, this is an omnibus patch to remove all such links. This was not a mechanical change; it was done by manually searching for rdar, radar, radr, and other variants to find all the various problematic links. From there, I tried to retain or reword the surrounding comments so that we would lose as little context as possible. However, because most links were just a plain link with no supporting context, the majority of the changes are simple removals. Differential Review: https://reviews.llvm.org/D158071
2023-07-17Revert "Remove rdar links; NFC"Mehdi Amini
This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d. This commit wasn't reviewed ahead of time and significant concerns were raised immediately after it landed. According to our developer policy this warrants immediate revert of the commit. https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy Differential Revision: https://reviews.llvm.org/D155509
2023-07-07Remove rdar links; NFCAaron Ballman
This removes links to rdar, which is an internal bug tracker that the community doesn't have visibility into. See further discussion at: https://discourse.llvm.org/t/code-review-reminder-about-links-in-code-commit-messages/71847
2021-08-18Implement P1949Corentin Jabot
This adds the Unicode 13 data for XID_Start and XID_Continue. The definition of valid identifier is changed in all C++ modes as P1949 (https://wg21.link/p1949) was accepted by WG21 as a defect report.
2013-10-21Lex: Don't restrict legal UCNs when preprocessing assemblyJustin Bogner
The C and C++ standards disallow using universal character names to refer to some characters, such as basic ascii and control characters, so we reject these sequences in the lexer. However, when the preprocessor isn't being used on C or C++, it doesn't make sense to apply these restrictions. Notably, accepting these characters avoids issues with unicode escapes when GHC uses the compiler as a preprocessor on haskell sources. Fixes rdar://problem/14742289 llvm-svn: 193067
2013-06-18Make sure the assembler-with-cpp hack for "#" works with multiple "#"s inEli Friedman
succession. Fixes PR16363. llvm-svn: 184240
2011-01-06fix rdar://8823139, a crash on a comment in a preprocessed .s fileChris Lattner
that contains the ## operator. llvm-svn: 122946
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
2009-11-30Use '-FOO' 'BAR' instead of '-FOO=BAR' in tests.Daniel Dunbar
llvm-svn: 90122
2009-11-08Remove RUN: true lines.Daniel Dunbar
llvm-svn: 86432
2009-11-08Eliminate &&s in tests.Daniel Dunbar
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
2009-10-27fix testsNuno Lopes
llvm-svn: 85223
2009-10-27Convert Preprocessor Clang tests to FileCheck in regards to PR5307.Edward O'Callaghan
llvm-svn: 85201
2009-09-09Remove tabs, and whitespace cleanups.Mike Stump
llvm-svn: 81346
2009-05-25Fix a couple of bugs:Chris Lattner
1. When we accept "#garbage" in asm-with-cpp mode, change the token kind of the # to unknown so that the preprocessor won't try to process it as a real #. This fixes a crash on the attached example 2. Fix macro definition extents processing to handle #foo at the end of a macro to say the definition ends with the foo, not the #. This is a follow-on fix to r72283, and rdar://6916026 llvm-svn: 72388
2009-05-25fix this test to fail when the patch isn't applied.Chris Lattner
llvm-svn: 72385
2009-05-24Make sure an invalid concatentaion doesn't insert whitespace before Eli Friedman
the RHS. Fixes assembler-with-cpp issue reported on cfe-dev. llvm-svn: 72370
2009-05-22In assembler-with-cpp mode, don't error on '#' (stringize) operator applied toDaniel Dunbar
non-argument names, pass the tokens through. llvm-svn: 72283
2009-04-19fix rdar://6804322 by wiring up -fdollars-in-identifiersChris Lattner
with assembler-with-cpp mode. llvm-svn: 69520
2009-03-24Rename clang to clang-cc.Daniel Dunbar
Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
2009-03-23The individual pieces of an invalid paste as still candidates for expansion.Chris Lattner
This matters in assembler mode, where this is silently allowed. This fixes rdar://6709206. llvm-svn: 67539
2009-03-20add tests for the various .S bugs I fixed on wednesday.Chris Lattner
llvm-svn: 67381
2009-03-20rename this test from .S to .c so that it gets run.Chris Lattner
llvm-svn: 67380