test2.cpp 680 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifdef preprocessor___
  2. #endif
  3. class A
  4. {
  5. A() : m_asign(0), asd(4)
  6. {
  7. if(){}
  8. }int method()
  9. {
  10. return 0;
  11. }int operator ++ ()
  12. {
  13. return 0;
  14. }
  15. int m_asign;
  16. };
  17. //
  18. namespace aaa {
  19. int main(int a, string b)
  20. {
  21. return 0;
  22. try {
  23. }
  24. catch (a) // for cyclomatic complexity test
  25. {
  26. }
  27. catch (b) // for cyclomatic complexity test
  28. {
  29. }
  30. }
  31. }
  32. "text" // C++ comments
  33. "text________________"
  34. "text" /* C comment */
  35. "text________________"
  36. "multiline____________
  37. _text________________"
  38. "multiline____________
  39. _text________________"
  40. "text" /* C multiline_
  41. _____comment */ "text"
  42. "text" /* C multiline_
  43. _____comment */ "text"