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

Disable clang-format for template strings in JS code

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

      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
      

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

              Created:
              Updated:
              Resolved: