[SERVER-22641] Disable clang-format for template strings in JS code Created: 16/Feb/16  Updated: 18/Nov/16  Resolved: 17/Feb/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.4, 3.3.2

Type: Task Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-22696 Remove clang-format workarounds for t... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG 10 (02/19/16)
Participants:

 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



 Comments   
Comment by Githook User [ 19/Feb/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-22641 Disable clang-format for template strings in JS code

(cherry picked from commit ff8ca92aafd08c17f93bf00bf7aeaac79643ad02)
Branch: v3.2
https://github.com/mongodb/mongo/commit/abb798f13feebe75f3d1fec94a2d06d64605f00a

Comment by Githook User [ 17/Feb/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-22641 Disable clang-format for template strings in JS code
Branch: master
https://github.com/mongodb/mongo/commit/ff8ca92aafd08c17f93bf00bf7aeaac79643ad02

Generated at Thu Feb 08 04:01:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.