[PATCH] D68272: [UpdateCCTestChecks] Detect function mangled name on separate line

David Greene via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 09:07:31 PDT 2019


greened added a comment.

In D68272#1690823 <https://reviews.llvm.org/D68272#1690823>, @MaskRay wrote:

> Can you give an example demonstrating the issue?


This test:

  /***********************************/
  /*                                 */
  /* A test.                         */
  /*                                 */
  /***********************************/
  int foo(void) {
    return 1;
  }
  
  c-index-test -write-pch test.pch test.c
  c-index-test -test-print-mangle test.pch

Produces this:

  FunctionDecl=foo:6:5 (Definition) RawComment=[/***********************************/] RawCommentRange=[5:1 - 5:38] BriefComment=[********************************] FullCommentAsHTML=[<p class="para-brief">********************************</p>] FullCommentAsXML=[<Function file="/ptmp/dag/test/test.c" line="6" column="5"><Name>foo</Name><USR>c:@F at foo</USR><Declaration>int foo()</Declaration><Abstract><Para>********************************</Para></Abstract></Function>]
  // CHECK:  CommentAST=[
  // CHECK:    (CXComment_FullComment
  // CHECK:       (CXComment_Paragraph
  // CHECK:         (CXComment_Text Text=[********************************])))] [mangled=foo]

Note that `mangled=foo` appears on a separate line.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68272/new/

https://reviews.llvm.org/D68272





More information about the llvm-commits mailing list