Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22939

Auto-indent selection has problems with digit separators

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.10.0
    • C/C++/Obj-C++ Support
    • None
    • Windows

      Using digit separators and then running auto-indent selection causes the next line to be incorrectly indented.  See example main.cpp, select all text, right-click and press auto-indent selection.  The output is shown in file main_after_auto_indent.cpp.

      Before:

      int32_t var = 1'000;

      std::cout << "var: " << var << std::endl; 

       

      After:

      int32_t var = 1'000;

                  std::cout << "var: " << var << std::endl; 

        1. main.cpp
          0.4 kB
        2. main_after_auto_indent.cpp
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            dmbancroft David Bancroft
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes