Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22641

Disable clang-format for template strings in JS code

    XMLWordPrintable

Details

    • Fully Compatible
    • TIG 10 (02/19/16)

    Description

      Clang format 3.6 does not properly handle JS template strings, code enclosed by a back-tick `.

      This code should be left unformatted by clang-format using the following

      // clang-format off
                  newCode = `load("${overridesFile}");
                  (${jsCode})();
                  `;
      // clang-format on
      

      Attachments

        Issue Links

          Activity

            People

              jonathan.abrahams Jonathan Abrahams
              jonathan.abrahams Jonathan Abrahams
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: