diff options
author | Markus Schorn | 2008-05-15 07:34:10 +0000 |
---|---|---|
committer | Markus Schorn | 2008-05-15 07:34:10 +0000 |
commit | fec33bb137d97b952f9f007b38c68d3bbc666def (patch) | |
tree | f590c60b638afeedad66a7796e4d94e47a578e2b /core/org.eclipse.cdt.core.tests/resources/rewrite | |
parent | e250ee6a33f50d2fb0b47726700c1dc52b15184b (diff) | |
download | org.eclipse.cdt-fec33bb137d97b952f9f007b38c68d3bbc666def.tar.gz org.eclipse.cdt-fec33bb137d97b952f9f007b38c68d3bbc666def.tar.xz org.eclipse.cdt-fec33bb137d97b952f9f007b38c68d3bbc666def.zip |
Proper handling of comments before preprocessing statements by Emanuel Graf, bug 232232.
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/rewrite')
-rw-r--r-- | core/org.eclipse.cdt.core.tests/resources/rewrite/CommentHandlingTestSource.rts | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/rewrite/CommentHandlingTestSource.rts b/core/org.eclipse.cdt.core.tests/resources/rewrite/CommentHandlingTestSource.rts index 834c12d3ecb..443348952a6 100644 --- a/core/org.eclipse.cdt.core.tests/resources/rewrite/CommentHandlingTestSource.rts +++ b/core/org.eclipse.cdt.core.tests/resources/rewrite/CommentHandlingTestSource.rts @@ -2960,3 +2960,97 @@ void Demo::methode3() { } = /*Am Schluss*/ +//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 1 +//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest +//@test.h +//TEST +#ifndef TEST_H_ +#define TEST_H_ + +class test +{ +}; + +#endif + +//= +=>leading +=>trailing +=>freestanding + +//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 2 +//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest +//@test.h +/* + * Licence information... + */ + +#ifndef TEST_H_ +#define TEST_H_ + +class test +{ +}; + +#endif + +//= +=>leading +=>trailing +=>freestanding + +//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 3 +//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest +//@test.h +/* + * Licence information... + */ + +#ifndef TEST_H_ +#define TEST_H_ + +//test +class test +{ +}; + +#endif + +//= +=>leading +class test +{ +}; = //test +=>trailing +=>freestanding + +//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 4 +//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest +//@test.h +/* + * HideMethod.h + */ + +#ifndef HIDEMETHOD_H_ +#define HIDEMETHOD_H_ + + +class HideMethod { +public: + HideMethod(); + virtual ~HideMethod(); + void methode2(); + void methode3(); + +private: + int i; + bool isOk; +}; + +#endif /* HIDEMETHOD_H_ */ + +//= +=>leading +=>trailing +=>freestanding + |